| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Servant.CSV.Cassava
Description
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', DefaultDecodeOpts)
- class EncodeOpts a where
- data DefaultEncodeOpts
- class DecodeOpts a where
- data DefaultDecodeOpts
Documentation
Instances
type CSV = (CSV', DefaultDecodeOpts) Source #
Encoding
Instances
Encode Options
class EncodeOpts a where Source #
Minimal complete definition
Methods
encodeOpts :: Proxy a -> EncodeOptions Source #
Instances
data DefaultEncodeOpts Source #
Instances
Decoding
Instances
Decode Options
class DecodeOpts a where Source #
Minimal complete definition
Methods
decodeOpts :: Proxy a -> DecodeOptions Source #
Instances
data DefaultDecodeOpts Source #
Instances