| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Lsql.Csv.Core.Tables
Description
Synopsis
- data Table = Table [String] [Column]
- data Column = Column [String] [Value]
- data Value
- buildTable :: [String] -> [[String]] -> [[Value]] -> Table
- crossJoinTable :: Table -> Table -> Table
- filterTable :: Column -> Table -> Table
- sortTable :: [Column] -> Table -> Table
- byTable :: [Column] -> Table -> [Table]
- emptyTable :: Table -> Table
- columnNames :: Table -> [([String], Column)]
- columnValue :: Column -> [Value]
- showColumn :: Column -> [String]
- applyOp :: (Value -> Value) -> Column -> Column
- applyInOp :: (Value -> Value -> Value) -> Column -> Column -> Column
- class Boolable a where
Documentation
A single table of data
The representation of data in Tables
Constructors
| IntValue Int | |
| StringValue String | |
| DoubleValue Double | |
| BoolValue Bool |
Instances
| Enum Value Source # | |
Defined in Lsql.Csv.Core.Tables | |
| Floating Value Source # | |
| Num Value Source # | |
| Fractional Value Source # | |
| Integral Value Source # | |
| Real Value Source # | |
Defined in Lsql.Csv.Core.Tables Methods toRational :: Value -> Rational # | |
| RealFrac Value Source # | |
| Show Value Source # | |
| Eq Value Source # | |
| Ord Value Source # | |
| Boolable Value Source # | |
Arguments
| :: [String] | The names of the table |
| -> [[String]] | The names of the columns |
| -> [[Value]] | The rows of the table |
| -> Table | The result table |
Makes a table out of rows of Value.
emptyTable :: Table -> Table Source #
applyOp :: (Value -> Value) -> Column -> Column Source #
A function for applying a single argument function to a Column