Skip to content

Instantly share code, notes, and snippets.

@ryantm
Created June 22, 2014 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryantm/50e07bd69cb248d0a65b to your computer and use it in GitHub Desktop.
Save ryantm/50e07bd69cb248d0a65b to your computer and use it in GitHub Desktop.
import Control.Arrow
main = return ()
printFile = readFile >>> putStr
runhaskell blah.hs
blah.hs:5:26:
Couldn't match type ‘IO String’ with ‘[Char]’
Expected type: IO String -> IO ()
Actual type: String -> IO ()
In the second argument of ‘(>>>)’, namely ‘putStr’
In the expression: readFile >>> putStr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment