Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Hydra.Langs.Tabular
Description
A simple, untyped tabular data model, suitable for CSVs and TSVs
Synopsis
- newtype DataRow v = DataRow {}
- _DataRow :: Name
- newtype HeaderRow = HeaderRow {
- unHeaderRow :: [String]
- _HeaderRow :: Name
- data Table v = Table {
- tableHeader :: Maybe HeaderRow
- tableData :: [DataRow v]
- _Table :: Name
- _Table_header :: Name
- _Table_data :: Name
Documentation
A data row, containing optional-valued cells; one per column
Instances
Read v => Read (DataRow v) Source # | |
Show v => Show (DataRow v) Source # | |
Eq v => Eq (DataRow v) Source # | |
Ord v => Ord (DataRow v) Source # | |
A header row, containing column names (but no types or data)
Constructors
HeaderRow | |
Fields
|
Instances
Read HeaderRow Source # | |
Show HeaderRow Source # | |
Eq HeaderRow Source # | |
Ord HeaderRow Source # | |
_HeaderRow :: Name Source #
A simple table as in a CSV file, having an optional header row and any number of data rows
Constructors
Table | |
Fields
|
_Table_header :: Name Source #
_Table_data :: Name Source #