~/talk

Required Type Arguments

links:none on file
slides:none on file

GHC gains a new extension that lets callers supply visible type arguments using a termlike syntax so APIs drop proxies and explicit type applications; a working example parses type-level format strings into a list of parts using the added ConSymbol/UnConSymbol type families and then builds a type-safe printf by expanding that list into function parameters. The feature is implemented (proposal 281) and usable today, enables examples like sizeOf T and showType T, and required parser and namespace fixes and deprecation warnings but runs in GHC.

AI-written summary · about

  1. 0:00Required type arguments
  2. 3:21Type-safe printf example
  3. 8:17Invisible type variable problem
  4. 13:35Refining APIs with required type args
  5. 17:48Theoretical foundations
  6. 22:48Haskell pi types
  7. 24:56Implementation challenges
  8. 25:17Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.