-
-
Save kozross/a90e4554562d2f056d3c4c3c20da0545 to your computer and use it in GitHub Desktop.
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
module Reader where | |
data ReaderF (r :: Type) (a :: Type) where | |
Ask :: ReaderF r r | |
Local :: (r -> r) -> (Free (ReaderF r) a) -> ReaderF r a | |
newtype Reader (r :: Type) (a :: Type) = R (Free (ReaderF r) a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment