Skip to content

Instantly share code, notes, and snippets.

@mwotton
Created May 28, 2014 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwotton/6f85ec38bff4ae2ac53b to your computer and use it in GitHub Desktop.
Save mwotton/6f85ec38bff4ae2ac53b to your computer and use it in GitHub Desktop.
dunno :: Row -> Enumerator Builder IO a
dunno r = \step -> case step of
Continue s -> s $ Chunks [fromLazyByteString $ encode r]
Yield a b -> Iteratee . return . Yield a $ b
Error s -> error (show s)
-- app worker = do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment