Safe Haskell | None |
---|---|
Language | Haskell2010 |
Functions for working with CSV files.
- data CsvError = CsvError String
- decodeWithHeader :: MonadThrow m => ByteString -> m (RFrame Text Text)
- decodeWithoutHeader :: MonadThrow m => ByteString -> m (RFrame Int Text)
- encodeWithHeader :: RFrame Text Text -> ByteString
- encodeWithoutHeader :: RFrame k Text -> ByteString
Documentation
Exception to wrap Cassava error strings.
decodeWithHeader :: MonadThrow m => ByteString -> m (RFrame Text Text) Source #
Decode CSV bytes as an RFrame
with a header row.
decodeWithoutHeader :: MonadThrow m => ByteString -> m (RFrame Int Text) Source #
Decode CSV bytes as an RFrame
without a header row.
encodeWithHeader :: RFrame Text Text -> ByteString Source #
Encode an RFrame
as CSV bytes with a header row.
encodeWithoutHeader :: RFrame k Text -> ByteString Source #
Encode an RFrame
as CSV bytes without header row.