Skip to content

Instantly share code, notes, and snippets.

@seanhess
Created November 3, 2011 23:30
Show Gist options
  • Save seanhess/1338258 to your computer and use it in GitHub Desktop.
Save seanhess/1338258 to your computer and use it in GitHub Desktop.
haskell types
get "/io" - do
file <- readFile "sandbox.hs"
text "hello"
/Users/seanhess/sandbox/Haskell/web/minmiku.hs:46:21:
Couldn't match expected type `Control.Monad.Trans.Reader.ReaderT
Network.Miku.Type.AppReader
(Control.Monad.Trans.State.Lazy.StateT
Network.Miku.Type.AppState IO)
t0'
with actual type `IO String'
In the return type of a call of `readFile'
In a stmt of a 'do' expression: file <- readFile "sandbox.hs"
In the second argument of `(-)', namely
`do { file <- readFile "sandbox.hs";
text "WOOT" }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment