Haskell in the Real World

Haskell isn't just academic — it's used in finance, tech, and systems programming where correctness matters.

Where Haskell is Used

Company Use Case
Facebook Spam filtering, Hack language
GitHub Semantic versioning
Standard Chartered Financial modelling
Google Build systems

Building a Real Project

Bash
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

mkdir my-app && cd my-app
cabal init --non-interactive
cabal build
cabal run

Testing with HSpec

HASKELL
import Test.Hspec

main :: IO ()
main = hspec $ do
    describe "add" $ do
        it "adds two numbers" $ add 2 3 `shouldBe` 5

Tips

  • Start with cabal init or stack new.
  • Use haskell-language-server for IDE support.
  • Hackage and Stackage have thousands of libraries.

🎉 You have completed the Haskell course!