Welcome to the companion Github repository for our Liftoff series on Monday Morning Haskell! This code is meant to accompany the series so you can have hands-on examples to work with!
The first article is done entirely within GHCI, the Haskell interpreter. So to follow along with the examples in that part, you'll just need to open the interpreter like so:
>> stack ghci
Then for the second two articles, you'll be working with some code examples. Each article has modules in this
repository: the normal module, and the "complete" module. The latter contains all the code examples from the article
already specified. The former contains mostly stubbed and undefined
definitions, so that you can follow along with
the article and fill out the different definitions.
In general, you should just work by confirming your code compiles by building it:
>> stack build
Though you can also examine the output of the various expressions by using GHCI and loading the modules:
>> stack ghci
...
> :l Syntax
> myIfStatement 1
3
In the article itself, you can also find some instructions for running the main
function of the module as an
executable.
For part 2 of the series, you'll want to use the Syntax module if you're following along, or the SyntaxComplete module if you're just looking for the reference.
And for the third part, you should look at DataTypes and DataTypesComplete!