A specific character encoding.
Since 0.3.0
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Moduleconduit-extra-1.3.8Haskell2010
NOTE It is recommended to start using Data.Conduit.Combinators instead of this module.
Copyright: 2011 Michael Snoyman, 2010-2011 John Millikin License: MIT
Handle streams of text.
Parts of this code were taken from enumerator and adapted for conduits.
For many purposes, it's recommended to use the conduit-combinators library, which provides a more complete set of functions.
A specific character encoding.
Since 0.3.0
Convert text into bytes, using the provided codec. If the codec is not capable of representing an input character, an exception will be thrown.
Since 0.3.0
Convert bytes into text, using the provided codec. If the codec is not capable of decoding an input byte sequence, an exception will be thrown.
Since 0.3.0
Since 0.3.0
Since 0.3.0
Since 0.3.0
Since 0.3.0
Since 0.3.0
Since 0.3.0
Since 0.3.0
Emit each line separately
Since 0.4.1
Variant of the lines function with an integer parameter. The text length of any emitted line never exceeds the value of the parameter. Whenever this is about to happen a LengthExceeded exception is thrown. This function should be used instead of the lines function whenever we are dealing with user input (e.g. a file upload) because we can't be sure that user input won't have extraordinarily large lines which would require large amounts of memory if consumed.
Since 0.3.0
Show TextExceptionDefined in conduit-extra-1.3.8 · Data.Conduit.TextException TextExceptionDefined in conduit-extra-1.3.8 · Data.Conduit.TextSince 1.0.8
Since 1.0.8
Since 1.0.8
Since 1.0.8
Since 1.0.8
Since 1.0.8
Decode a stream of binary data as UTF8.
Decode a stream of binary data as UTF8, replacing any invalid bytes with the Unicode replacement character.
Encode a stream of text as UTF8.
Subject to fusion
Automatically determine which UTF variant is being used. This function checks for BOMs, removing them as necessary. It defaults to assuming UTF-8.
Since 1.1.9