programming-in-haskell
programming-in-haskell copied to clipboard
My solutions for all exercises in "Programming in Haskell" 2nd ed.
Programming in Haskell
Solutions for exercises in "Programming in Haskell" 2nd ed. by Graham Hutton
I have also been participating in a Haskell programming study
Environment
- GHC 8.6.5
- VS Code with hindent-format extension
Exercises
Chapter 1
1.7.1 1.7.2 1.7.3 1.7.4 1.7.5
Chapter 2
2.7.2 2.7.3 2.7.4 2.7.5
- 2.7.1 is a GHCi practice
Chapter 3
3.11.1 3.11.2 3.11.3 3.11.5
- 3.11.4 is a GHCi practice
Chapter 4
4.8.1 4.8.2 a b c 4.8.3 a b c d 4.8.4 a b c d 4.8.5 4.8.6 4.8.7 4.8.8
Chapter 5
5.7.1 5.7.2 5.7.3 5.7.4 5.7.5 5.7.6 5.7.7 5.7.8 5.7.9 5.7.10
Chapter 6
6.8.1 6.8.2 6.8.3 6.8.4 6.8.5 6.8.6 a b c d e 6.8.7 6.8.8 6.8.9 a b c
Chapter 7
7.9.1 7.9.2 7.9.3 7.9.4 7.9.5 7.9.6 7.9.7 7.9.8 7.9.9 7.9.10
Chapter 8
8.9.1 8.9.2 8.9.3 8.9.4 8.9.5 8.9.6 8.9.7 8.9.8 8.9.9
Chapter 9
9.11.1 9.11.2 9.11.3 9.11.4 9.11.5 9.11.6 a b c
Chapter 10
10.10.1 10.10.2 10.10.3 10.10.4 10.10.5 10.10.6
Chapter 11
11.13.1 11.13.2 11.13.3 11.13.4 a b c d
Chapter 12
12.5.1 12.5.2 12.5.3 12.5.4 12.5.5 12.5.6 12.5.7 12.5.8
Chapter 13
13.11.1 13.11.2 13.11.3 13.11.4 13.11.5 13.11.6 13.11.7 13.11.8 13.11.9
Chapter 14
14.5.1 14.5.2 14.5.3 14.5.4 14.5.5
Chapter 15
15.9.1 15.9.2 15.9.3 15.9.4 15.9.5 15.9.6
Chapter 16
16.9.1 16.9.2 16.9.3 16.9.4 16.9.5 16.9.6 solution code 16.9.7 16.9.8 16.9.9 16.9.10 16.9.11
Chapter 17
17.8.1
Source codes
Chapter 1 Introduction
sum product
Chapter 7 Higher-order function
voting
Chapter 8 Declaring types and classes
tree tautology_checker abstract_machine
Chapter 9 The countdown problem
countdown
Chapter 10 Interactive programming
hangman nim life
Chapter 11 Unbeatable tic-tac-toe
tictactoe
Chapter 13 Monadic parsing
parser calculator
Chapter 17 Calculating compilers
compiler