Copyright | © 2015 Patryk Zadarnowski <pat@jantar.org> |
---|---|
License | BSD3 |
Maintainer | pat@jantar.org |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
CSV syntax elements as defined in RFC 4180 and a few miscellaneous Quiver combinators.
- data CSVError
- (*>:>) :: ByteString.ByteString -> P a' a ByteString.ByteString b' f (SPResult e) -> P a' a ByteString.ByteString b' f (SPResult e)
- deliverError :: e -> P a' a b b' f (SPResult e)
- pattern LF :: Word8
- pattern CR :: Word8
- pattern QC :: Word8
- pattern CC :: Word8
- isSpecial :: Word8 -> Bool
- fieldDelimiter :: ByteString.ByteString
- fieldSeparator :: ByteString.ByteString
- recordSeparator :: ByteString.ByteString
- quoteSequence :: ByteString.ByteString
Documentation
Codec error type.
IncompleteCell | Input ends in a partial cell value.
For encoder, this means that the last |
IncompleteRow | Input ends in a partial row value.
For encoder, this means that the last |
(*>:>) :: ByteString.ByteString -> P a' a ByteString.ByteString b' f (SPResult e) -> P a' a ByteString.ByteString b' f (SPResult e) infixr 5 Source
Emits a bytestring, filtering out the empty ones.
deliverError :: e -> P a' a b b' f (SPResult e) Source
Delivers a simple stream processor failure.
isSpecial :: Word8 -> Bool Source
Identifies special byte values, which should never appear within unquoted CSV fields.
fieldDelimiter :: ByteString.ByteString Source
The field delimiter string (a quote character.)
fieldSeparator :: ByteString.ByteString Source
The field separator string (a comma character.)
recordSeparator :: ByteString.ByteString Source
The field separator (CR+LF byte sequence.)
quoteSequence :: ByteString.ByteString Source
An escaped quote string (double quote character.)