Last active
June 18, 2016 01:27
-
-
Save majecty/1ee93a2bb4b1e8ed421fd3bf15be8ec6 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
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
module HaskelineMonadReader where | |
import Control.Monad.Reader | |
import System.Console.Haskeline | |
instance MonadReader r m => MonadReader r (InputT m) where | |
ask = lift ask | |
local = mapInputT . local | |
main :: IO () | |
main = putStrLn "HI" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment