From edd8726a468112705d247312c8d7edac5c5cd04e Mon Sep 17 00:00:00 2001 From: michaelt Date: Mon, 4 May 2015 14:16:55 -0400 Subject: encoding documentation --- examples/attoparser.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/attoparser.hs b/examples/attoparser.hs index 6328991..b7d8c11 100644 --- a/examples/attoparser.hs +++ b/examples/attoparser.hs @@ -18,10 +18,10 @@ testParser = do return $ Test a b main = IO.withFile "./testfile" IO.ReadMode $ \handle -> runEffect $ - for (parsed testParser (fromHandle handle)) - (lift . print) - - + do leftover <- for (parsed testParser (fromHandle handle)) + (lift . print) + return () -- ignore unparsed material + -- >>> :! cat testfile -- 1 1 -- 2 2 -- cgit v1.2.3