This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{- | |
This is a port of https://jordanmartinez.github.io/purescript-jordans-reference-site/content/21-Hello-World/05-Application-Structure/src/02-MTL/32-The-ReaderT-Capability-Design-Pattern.html | |
There was no simple, working example of the ReaderT pattern in Haskell | |
-} | |
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
import qualified Control.Monad.IO.Class as MonadIO | |
import qualified Control.Monad.Reader as Reader | |
import Prelude |