Skip to content

Instantly share code, notes, and snippets.

@bos
Created October 2, 2010 03:48
Show Gist options
  • Save bos/607265 to your computer and use it in GitHub Desktop.
Save bos/607265 to your computer and use it in GitHub Desktop.
src/Snap/Internal/Http/Parser.hs:126:4:
Couldn't match expected type `Iteratee IO a'
against inferred type `(a1, b)'
In the pattern: (out, _)
In a stmt of a 'do' expression:
(out, _) <- unsafeBufferIterateeWithBuffer
buf (ignoreEOF $ wrap killwrap it)
In the expression:
do { killwrap <- newIORef False;
(out, _) <- unsafeBufferIterateeWithBuffer
buf (ignoreEOF $ wrap killwrap it);
i <- enum out;
v <- runIter i (EOF Nothing);
.... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment