Getting started with the Haskell programming language
Some quotes from Wikipedia:
“Haskell is a standardized, general-purpose purely functional programming language…“
“The language continues to evolve rapidly, with the Glasgow Haskell Compiler (GHC) implementation representing the current de facto standard.“
“It is a purely functional language, which means that in general, functions in Haskell do not have side effects.“
“There is an active community around the language, and more than 2600 third-party open-source libraries and tools are available in the online package repository Hackage.“
sudo apt-get install haskell-platform
Hello, World! (compiled)
Create the file
main = putStrLn "Hello, World!"
ghc hello.hs -o hello
Run it with
Hello, World! (interpreted)
#!/usr/bin/runghc main = putStrLn "Hello, World!"
chmod u+x hello.hs” and “
There are tons of tutorials on the Web.
- Learn You a Haskell for Great Good! by Miran Lipovača is a fun introduction to the language. Get the PDF version here.
- Haskell in 5 steps (quick intro)