License | BSD-style |
---|---|
Maintainer | Foundation |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Provies the support for Comma Separated Value
Synopsis
- data CSV
- csvStringBuilder :: CSV -> Builder
- rowStringBuilder :: Row -> Builder
- fieldStringBuilder :: Field -> Builder
- csvBlockBuilder :: CSV -> Builder
- rowBlockBuilder :: Row -> Builder
- fieldBlockBuilder :: Field -> Builder
- rowC :: (Record row, Monad m) => Conduit row (Block Word8) m ()
- file :: Parser String CSV
- record :: Parser String Row
- record_ :: forall row. (Typeable row, Record row) => Parser String row
- field :: Parser String Field
- recordC :: (Monad m, MonadThrow m) => Conduit String Row m ()
- data Row
- class Record a where
- data Field
- data Escaping
- class IsField a where
- integral :: Into Integer a => a -> Field
- float :: Double -> Field
- string :: String -> Field
CSV
CSV Type
Instances
Builder
String Bulider
csvStringBuilder :: CSV -> Builder Source #
serialise the CSV document into a UTF8 string
rowStringBuilder :: Row -> Builder Source #
fieldStringBuilder :: Field -> Builder Source #
Block Builder
csvBlockBuilder :: CSV -> Builder Source #
serialise the CSV document into a UTF8 encoded (Block Word8)
rowBlockBuilder :: Row -> Builder Source #
fieldBlockBuilder :: Field -> Builder Source #
Conduit
Parser
String Bulider
Conduit
Row
CSV Row
Instances
Instances
Record Row Source # | |
(IsField a, IsField b) => Record (a, b) Source # | |
(IsField a, IsField b, IsField c) => Record (a, b, c) Source # | |
(IsField a, IsField b, IsField c, IsField d) => Record (a, b, c, d) Source # | |
(IsField a, IsField b, IsField c, IsField d, IsField e) => Record (a, b, c, d, e) Source # | |
(IsField a, IsField b, IsField c, IsField d, IsField e, IsField f) => Record (a, b, c, d, e, f) Source # | |
Field
CSV field
Instances
Bounded Escaping Source # | |
Enum Escaping Source # | |
Defined in Foundation.Format.CSV.Types | |
Show Escaping Source # | |
NormalForm Escaping Source # | |
Defined in Foundation.Format.CSV.Types toNormalForm :: Escaping -> () Source # | |
Eq Escaping Source # | |
Ord Escaping Source # | |
Defined in Foundation.Format.CSV.Types |
class IsField a where Source #