MondayMorningHaskell / haskellings

An automated tutorial to teach you about Haskell!
BSD 3-Clause "New" or "Revised" License
166 stars 25 forks source link

Change things to Reader Config IO #53

Closed jhb563 closed 3 years ago

jhb563 commented 3 years ago

Use Reader monad over our config

Many functions follow the pattern of ProgramConfig -> ... -> IO a. This changes them to instead use ReaderT IO ProgramConfig a. This provides more semantic clarity around the role of the Config, and simplifies many function calls.

MondayMorningHaskell commented 3 years ago

LGTM