~/talk

Making another DSL in Haskell: case study

Talkat f(by) 2020 · on Saturday, 2020-01-25· [haskell, databases]
links:none on file
slides:none on file

Demonstrates a Haskell embedding of Neo4j's Cypher that turns string queries into statically checked DSL programs, implemented as a free-monadic API that tracks node/relationship labels, parameters and variable scopes at the type level. Uses Generics, Type Families and polykinds to derive label names and enforce field presence, uses overloaded labels for named parameters, and adds custom type errors and rebindable syntax so GHC rejects mismatched variables and missing params at compile time; the implementation compiles and runs.

AI-written summary · about

  1. 0:00Intro
  2. 1:35No4J
  3. 2:25Cypher query
  4. 3:26Running the query
  5. 4:26Creating the DSL
  6. 5:15Defining the domain
  7. 6:46Model selectors
  8. 10:21Type families
  9. 12:08New type
  10. 14:16Note selectors
  11. 15:00Name of a type
  12. 16:56Type errors
  13. 19:16Wrapper
  14. 20:25Typeclass
  15. 22:01Run query
  16. 22:43Run return record
  17. 26:53Type tags
  18. 30:38Two statements
  19. 32:30Compile
  20. 33:59References
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.