Skip to content

Instantly share code, notes, and snippets.

@ryantm
Last active August 29, 2015 14:02
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/e0a94ebcc2e89bbc4add to your computer and use it in GitHub Desktop.
Save ryantm/e0a94ebcc2e89bbc4add to your computer and use it in GitHub Desktop.
import Control.Arrow
main = return ()
printFile = readFile >>> print
blah.hs:5:26:
No instance for (Show (IO String)) arising from a use of ‘print’
In the second argument of ‘(>>>)’, namely ‘print’
In the expression: readFile >>> print
In an equation for ‘printFile’: printFile = readFile >>> print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment