// interactive course

Learn Haskell and miso

One concept at a time, alternating between Haskell and miso. Read a little, answer a question, then write code that compiles and runs right here in your browser.

0XP
0 / 24lessons complete
24lessons

Your progress is saved in this browser.

  1. HaskellValues and typesEvery value has a type, and the compiler checks them for you.0/5 steps
  2. misoWhat is miso?A model, an update function and a view: that is a Component, and a whole app.0/5 steps
  3. HaskellFunctionsDefining functions, applying them, and why there are no parentheses.0/5 steps
  4. misoThe View DSLHTML as Haskell functions: elements, attributes and text.0/4 steps
  5. HaskellListsThe workhorse data structure: building, combining and transforming lists.0/5 steps
  6. misoModel, update, viewActions change the model; the view follows. Your first interactive app.0/4 steps
  7. HaskellPattern matchingTake values apart by their shape, with equations, case and guards.0/5 steps
  8. misoEventsClicks, typing and more, delivered as actions you define.0/4 steps
  9. HaskellAlgebraic data typesModel your domain precisely: sums, products and records.0/5 steps
  10. misoLenses and the Effect monadChange one field of the model with a lens; read it with use.0/4 steps
  11. HaskellType classesShow, Eq, Ord: shared behaviour across types, with instances you write.0/5 steps
  12. misoLists in viewsRender a list of things, keyed so the DOM stays in step with the model.0/4 steps
  13. HaskellRecursion and foldsLoops without loops: functions that call themselves, and folds that capture the pattern.0/5 steps
  14. misoIO in updateSchedule IO from update with io and io_; the result comes back as an action.0/4 steps
  15. HaskellHigher-order functionsFunctions that take and return functions: composition, sections and point-free style.0/5 steps
  16. misoSubscriptionsTimers, keyboard, window events: streams of actions that live as long as the component.0/4 steps
  17. HaskellMaybe and EitherNo nulls, no exceptions: absence and failure as ordinary values.0/5 steps
  18. misoComponentsNest components with their own model and update; talk upwards with mail.0/4 steps
  19. HaskellStrings and MisoStringString is a list of Char; MisoString is the fast text miso renders. Moving between them.0/5 steps
  20. misoStylingClasses, inline styles and the typed CSS DSL.0/4 steps
  21. Haskelllet, where and local definitionsName the pieces of a computation where you use them.0/5 steps
  22. misoForms and inputsText fields, checkboxes, selects and submit, all driven by the model.0/4 steps
  23. HaskellFunctors and monadsfmap over any container, and do-notation beyond IO.0/5 steps
  24. misoBuild a todo appEverything together: a record model, lenses, a keyed list, a form and filters.0/4 steps