meghatiku / learning-haskell

Homework for the lecture series on haskell. (Nearly everything is copied from other sources)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Homework for the lecture series on haskell. (Nearly everything is copied from other sources)


Languages

Language:Haskell 100.0%