diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/decode.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/decode.hs b/examples/decode.hs index 177325d..d5fe558 100644 --- a/examples/decode.hs +++ b/examples/decode.hs | |||
@@ -10,7 +10,8 @@ import qualified Pipes.ByteString as ByteString | |||
10 | import qualified Pipes.Text as Text | 10 | import qualified Pipes.Text as Text |
11 | import qualified Pipes.Text.Encoding as Text | 11 | import qualified Pipes.Text.Encoding as Text |
12 | 12 | ||
13 | -- Retrieve all `Text` chunks up to 10 characters | 13 | -- Retrieve utf8-encode `Text` chunk(s) up to 10 characters |
14 | -- from the bytestring (this can have various byte lengths) | ||
14 | parser :: Monad m => Parser ByteString m [Text] | 15 | parser :: Monad m => Parser ByteString m [Text] |
15 | parser = zoom (Text.utf8 . Text.splitAt 10) drawAll | 16 | parser = zoom (Text.utf8 . Text.splitAt 10) drawAll |
16 | 17 | ||