Slides and examples from Applicative workshop LambdaConf Winter Retreat, January 2017
- context dependency: earlier failures can short-circuit later code
- maybe.hs
- either.hs for comparison (this was mostly added after the talk, for the Austin meetup)
- another type of functor, different from Functor or Monad
- anagramMaybe.hs
- compare monadic and applicative versions
- datatype from
validationlibrary - anagramEither.hs
- like
Eitherbut can accumulate error messages on the left accproject
- new language extension lets you use
dosyntax with applicatives - see applicDo.hs within
accproject
- library for command line argument parsing
- most of it is implemented applicatively (not monadically, though monadic parsing is also fun)
- we didn't talk about how most of the functions and types this library provides works
- walked through example
optexproject
- command line address book along the lines of ppl addressbook
- this is just the argument parsing portion
addressproject