Created
February 17, 2011 17:31
-
-
Save jacobstanley/832199 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
problem.hs:4:4: | |
Inferred type is less polymorphic than expected | |
Quantified type variable `a' is mentioned in the environment: | |
out :: Enumerator Builder IO a (bound at problem.hs:3:4) | |
In the first argument of `addToOutput', namely `out' | |
In the expression: addToOutput out | |
In the expression: | |
do { out <- runRequestBody mkOutput; | |
addToOutput out } |
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
test :: Snap () | |
test = do | |
out <- runRequestBody mkOutput | |
addToOutput out | |
mkOutput :: Iteratee ByteString IO (Enumerator Builder IO a) | |
mkOutput = undefined | |
-- Functions used from Snap.Types | |
addToOutput :: MonadSnap m => (forall a . Enumerator Builder IO a) -> m () | |
runRequestBody :: MonadSnap m => Iteratee ByteString IO a -> m a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment