~/talk

Seriously, The Haskell Type Checker is Your Friend

Talkat LambdaConf 2018 · 2018-06-03..06-05· [developer-experience]
name:J Haigh
github:JRHaigh
slides:none on file

Live walkthrough of real GHC errors with concrete fixes: use GHC 8.2.2 and GHCi to reproduce parse, definition and type errors; fix module/pragma order and indentation, rename main or change its IO vs Int signature, import Data.Maybe/Data.List to bring Maybe and sort into scope, correct use of data constructors (Just vs Maybe) and arity, and implement Peano naturals and enumerateFromTo with proper recursion and successor so the compiler’s reported expected vs actual types match.

AI-written summary · about

  1. 0:00Start
  2. 5:30Parse Errors
  3. 7:59Indentation Rules
  4. 9:37Parse Error Possibly Incorrect Indentation or Mismatched Brackets
  5. 15:11Definition and Type Errors
  6. 15:30Definition Error
  7. 21:37Type Mismatch
  8. 24:55Not Enough Arguments
  9. 25:20Type Ordering
  10. 25:57Successor Function
  11. 27:57Background
~/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.