aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/attoparser.hs8
1 files changed, 4 insertions, 4 deletions
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
18 return $ Test a b 18 return $ Test a b
19 19
20main = IO.withFile "./testfile" IO.ReadMode $ \handle -> runEffect $ 20main = IO.withFile "./testfile" IO.ReadMode $ \handle -> runEffect $
21 for (parsed testParser (fromHandle handle)) 21 do leftover <- for (parsed testParser (fromHandle handle))
22 (lift . print) 22 (lift . print)
23 23 return () -- ignore unparsed material
24 24
25-- >>> :! cat testfile 25-- >>> :! cat testfile
26-- 1 1 26-- 1 1
27-- 2 2 27-- 2 2