dhall-csv-1.0.2: Convert bidirectionally between Dhall and CSV files.
Safe HaskellNone
LanguageHaskell2010

Dhall.Csv.Util

Synopsis

Documentation

encodeCsvDefault :: [NamedRecord] -> Text Source #

Utility to convert a list of NamedRecord to Text formatted as a CSV.

decodeCsvDefault :: Bool -> Text -> Either String [NamedRecord] Source #

Utility to decode a CSV into a list of records. Must specify whether the CSV to decode has header or not.