[Haskell-cafe] iteratee enumHandle
paolo.veronelli at gmail.com
Thu Jul 9 10:40:15 EDT 2009
I'm testing iteratee.
This is the possible bug I've found
main = do
h <- openFile "mamma23" ReadWriteMode
hPutStrLn h "ciao"
hSeek h AbsoluteSeek 0
l <- (enumHandle h stream2list :: IO (Iteratee IO String)) >>= run
print $ assert (l == "ciao") ()
This aside, I'd like to know if there is a way to use parsec library
to make an Iteratee, so if it's possible to make parsec spit out a
continuation on EOF, or maybe as in delcont language to capture it.
More information about the Haskell-Cafe