Skip to content

Instantly share code, notes, and snippets.

@anler
Created May 24, 2017 07:38
Show Gist options
  • Save anler/d2633d55a26e11d3805c776efba22eed to your computer and use it in GitHub Desktop.
Save anler/d2633d55a26e11d3805c776efba22eed to your computer and use it in GitHub Desktop.
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