License | BSD-style |
---|---|
Maintainer | Foundation |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
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
- = NoEscape
- | Escape
- | DoubleEscape
- 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 succ :: Escaping -> Escaping Source # pred :: Escaping -> Escaping Source # toEnum :: Int -> Escaping Source # fromEnum :: Escaping -> Int Source # enumFrom :: Escaping -> [ Escaping ] Source # enumFromThen :: Escaping -> Escaping -> [ Escaping ] Source # enumFromTo :: Escaping -> Escaping -> [ Escaping ] Source # enumFromThenTo :: Escaping -> Escaping -> Escaping -> [ Escaping ] Source # |
|
Eq Escaping Source # | |
Ord Escaping Source # | |
Defined in Foundation.Format.CSV.Types |
|
Show Escaping Source # | |
NormalForm Escaping Source # | |
Defined in Foundation.Format.CSV.Types toNormalForm :: Escaping -> () Source # |
class IsField a where Source #
Instances
IsField Bool Source # | |
IsField Char Source # | |
IsField Double Source # | |
IsField Int Source # | |
IsField Int8 Source # | |
IsField Int16 Source # | |
IsField Int32 Source # | |
IsField Int64 Source # | |
IsField Integer Source # | |
IsField Natural Source # | |
IsField Word Source # | |
IsField Word8 Source # | |
IsField Word16 Source # | |
IsField Word32 Source # | |
IsField Word64 Source # | |
IsField String Source # | |
IsField Word256 Source # | |
IsField Word128 Source # | |
IsField Field Source # | |
IsField [ Char ] Source # | |
IsField a => IsField ( Maybe a) Source # | |
IsField ( Offset a) Source # | |
IsField ( CountOf a) Source # | |