Quick steps to get up and running with Haskell.
With the Haskell Stack you get a comprehensive development environment for Haskell:
To quickly run a Haskell script:
Copy the following content into a file called
#!/usr/bin/env stack -- stack --install-ghc runghc main :: IO () main = putStrLn "Hello World"
Start on a proper Haskell package. Run the following in your terminal:
You can now edit the source files in this directory (see the file
src/Lib.hs), and rebuild and run the project with
stack build and
stack exec new-project-exe as above.
Congratulations, you're setup to start writing Haskell code! Now you're ready to: