Haskell first steps with GHCi, lists and recursion

8 steps · about 3 h 35 min · Beginner

  1. Install GHC and run your first program (tutorial, Haskell.org, 15 min)

    The official path to a working toolchain, editor setup and first compiled program.

  2. Manage GHC, cabal and HLS with GHCup (reference, Haskell.org, 10 min)

    The recommended installer; it keeps compiler and language server versions compatible.

  3. Use GHCi commands like :t and :load (reference, GHC User's Guide, 20 min)

    Knowing :type, :info and :reload makes the REPL your main learning tool.

  4. Work with lists, ranges and comprehensions (tutorial, Learn You a Haskell, 30 min)

    A friendly first tour of functions, lists, tuples and list comprehensions.

  5. Write recursive list functions (tutorial, Learn You a Haskell, 20 min)

    Implements maximum, replicate, take and quicksort to show the base case plus recursive case pattern.

  6. Follow a university first lecture (article, University of Pennsylvania, 30 min)

    UPenn CIS 194's opener covers types, guards, pairs and lists with exercises.

  7. Spot recursion patterns and polymorphism (article, University of Pennsylvania, 30 min)

    Shows how map, filter and fold capture the recursion you wrote by hand.

  8. Practise with graded exercises (interactive, Exercism, 1 h)

    Small test-backed problems that reinforce types and recursion.