Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.68 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.68 KB

Learning Haskell at Shuttl

A Lecture Series by Sherub Thakur, a Haskell Lover!

Prerequisite Setup

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:

stack Installation

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.

Glasgow Haskell Compiler and stack

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!

Hello, World! using REPL

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!"

Project Setup

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

Are We Ready?

Hey!
Say Aye,
or Yay!

References

Official Documentation: stack Installation