Safe Haskell | None |
---|---|
Language | Haskell2010 |
A CSV
empty datatype with MimeRender
and MimeUnrender
instances for
cassava
's encoding and decoding classes.
>>>
type Eg = Get '[(CSV', MyEncodeOptions)] [(Int, String)]
Default encoding and decoding options are also provided, along with the
CSV
type synonym that uses them.
>>>
type EgDefault = Get '[CSV] [(Int, String)]
- data CSV'
- type CSV = (CSV', DefaultOpts)
- data DefaultOpts
- class EncodeOpts a where
- class DecodeOpts a where
Documentation
type CSV = (CSV', DefaultOpts) Source #
data DefaultOpts Source #
Encoding
Instances
Encode Options
class EncodeOpts a where Source #
encodeOpts :: Proxy a -> EncodeOptions Source #
Decoding
Instances
Decode Options
class DecodeOpts a where Source #
decodeOpts :: Proxy a -> DecodeOptions Source #