Created
November 3, 2011 23:30
-
-
Save seanhess/1338258 to your computer and use it in GitHub Desktop.
haskell types
This file contains hidden or 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
get "/io" - do | |
file <- readFile "sandbox.hs" | |
text "hello" |
This file contains hidden or 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
/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