Haskell first steps with GHCi, lists and recursion
8 steps · about 3 h 35 min · Beginner
- 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.
- Manage GHC, cabal and HLS with GHCup (reference, Haskell.org, 10 min)
The recommended installer; it keeps compiler and language server versions compatible.
- 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.
- Work with lists, ranges and comprehensions (tutorial, Learn You a Haskell, 30 min)
A friendly first tour of functions, lists, tuples and list comprehensions.
- 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.
- Follow a university first lecture (article, University of Pennsylvania, 30 min)
UPenn CIS 194's opener covers types, guards, pairs and lists with exercises.
- Spot recursion patterns and polymorphism (article, University of Pennsylvania, 30 min)
Shows how map, filter and fold capture the recursion you wrote by hand.
- Practise with graded exercises (interactive, Exercism, 1 h)
Small test-backed problems that reinforce types and recursion.