tvl-depot/scratch/haskell-programming-from-first-principles
William Carroll ee1aeee5f8 Complete exercises for Reader and State chapters
It's beautiful how State is just Reader that returns a tuple of (a, r) instead
of just a, allowing you to modify the environment (i.e. state).

```haskell
newtype Reader r a = Reader { runReader :: r -> a }
newtype State s a = State { runState :: s -> (a, s) }
```
2020-07-01 10:42:57 +01:00
..
.ghci Create a .ghci for this directory 2020-07-01 10:38:56 +01:00
applicative.hs Complete exercises from Applicative chapter 2020-06-18 11:07:03 +01:00
foldable.hs Complete exercises from Foldable chapter 2020-06-18 11:05:49 +01:00
monad.hs Complete the Monad chapter 2020-06-18 11:07:55 +01:00
reader.hs Complete exercises for Reader and State chapters 2020-07-01 10:42:57 +01:00
shell.nix Create Nix shell for Haskell scratchpad 2020-06-18 11:08:55 +01:00
state.hs Complete exercises for Reader and State chapters 2020-07-01 10:42:57 +01:00
traversable.hs Complete exercises from Traversable chapter 2020-07-01 10:37:54 +01:00