Learning Haskell at Shuttl
A Lecture Series by Sherub Thakur, a Haskell Lover!
To work with Haskell, we'll first need to set it up. Further, there're multiple ways to go about doing it. Let's start with a simple one, which is friendly for beginner programmers:
We can use a tool called stack to work on our Haskell projects. So, of course, we need to install it before we can go any further.
One easy way to install stack involves executing a .sh script:
$ curl -sSL https://get.haskellstack.org/ | sh
To learn more about this, refer to the FAQ guide.
Let's start by running ghci, the GHC executable:
$ stack ghci
Diving deep into this is a bit out of scope for this README. But, it's all very interesting. Go and read it!
Now, let's do a simple "Hello, World!" thing using REPL, so as to ensure that things are running ok:
> print "Hello, World!"
"Hello, World!"
We can start with the usual forking and cloning of this repository. After that, we should be able to build and test our project using stack:
$ cd learning-haskell/lecture01
$ stack test
Hey!
Say Aye,
or Yay!