Created
November 27, 2012 03:25
-
-
Save aaronj1335/4152178 to your computer and use it in GitHub Desktop.
This file contains 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
Prelude> import qualified Control.Monad.State | |
Prelude Control.Monad.State> let fromStoAandS c | c `mod` 5 == 0 = ("foo",c+1) | otherwise = ("bar",c+1) | |
Prelude Control.Monad.State> let stateIntString = State fromStoAandS | |
<interactive>:6:22: | |
Not in scope: data constructor `State' | |
Perhaps you meant `Control.Monad.State.StateT' (imported from Control.Monad.State) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment