We built an interactive lesson to teach the functional programming concepts of recursion, pattern matching and first-class functions. We chose the programming language Haskell for the language of the tutorial, because of it’s rich type system and elegant syntax that was specifically designed for functional programming.

The hardest part of the hack was building a parser that could convert a small subset of Haskell to an AST (abstract syntax tree) in Javascript and back, which even allows users to define their own custom Haskell functions to add to the interactive course!

Built With

Share this project:
×

Updates