Repository created in order to learn basics of Haskell language
sudo apt-get install haskell-platform
Go to the website https://www.haskell.org/platform/mac.html, download installer and follow the instructions.
After installation, we can run Haskell console with the follwing command:
$ ghci
We can use Haskell through this console.
We can run haskell programs from a terminal. We just need to add appropriate header.
Examplary program hello.hs
:
#!/usr/bin/env runhaskell
main = putStrLn "Hello World!"
We can execute it as follows:
./hello.hs
Moreover, we can load files with functions into ghci
as follows:
ghci
ghci > :l our_source_file.hs
ghci > ourFunction
- Vim
- Atom.io
- Official website of the Haskell language
- Haskell-lang.org - docs
- Learn you Haskell
- Learn you Haskell for Kindle
- Why Functional Programming matters? (pdf)
- Haskell Video Tutorial (1h)
- FP101x - Functional Programming MOOC 2015 Content Repository
- Hello Haskell, Goodbye Scala - blog post
- Yesod - fast web framework for Haskell
- awesome haskell