Created
May 24, 2017 07:38
-
-
Save anler/d2633d55a26e11d3805c776efba22eed 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
import Control.Monad.IO.Class | |
import Data.Functor.Identity | |
getline :: MonadIO m => m String | |
getline = (liftIO getLine) >> return "some fake input\n" | |
main :: IO () | |
main = do | |
let x = runIdentity $ (++) <$> getline <*> getline | |
putStrLn x | |
instance MonadIO Identity where | |
liftIO ioaction = undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment