Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Text.Layout.Table.Spec.RowGroup
Synopsis
- data RowGroup a
- = SingletonRowGroup (Row a)
- | MultiRowGroup [Row a]
- | NullableRowGroup [Row (Maybe a)]
- rowsG :: [Row a] -> RowGroup a
- rowG :: Row a -> RowGroup a
- nullableRowsG :: [Row (Maybe a)] -> RowGroup a
- rowGroupShape :: RowGroup a -> [()]
- data ColumnSegment a
- = SingleValueSegment a
- | ColumnSegment (Col a)
- | NullableColumnSegment (Col (Maybe a))
- newtype SegmentedColumn a = SegmentedColumn [ColumnSegment a]
- transposeRowGroups :: Col (RowGroup a) -> [SegmentedColumn a]
- mapRowGroupColumns :: [(b, a -> b)] -> RowGroup a -> [[b]]
Documentation
Groups rows together which should not be visually seperated from each other.
Constructors
SingletonRowGroup (Row a) | |
MultiRowGroup [Row a] | |
NullableRowGroup [Row (Maybe a)] |
nullableRowsG :: [Row (Maybe a)] -> RowGroup a Source #
Provide a RowGroup
where single cells may be missing.
rowGroupShape :: RowGroup a -> [()] Source #
Extracts the shape of the RowGroup
from the first row.
data ColumnSegment a Source #
Constructors
SingleValueSegment a | |
ColumnSegment (Col a) | |
NullableColumnSegment (Col (Maybe a)) |
Instances
newtype SegmentedColumn a Source #
Constructors
SegmentedColumn [ColumnSegment a] |
Instances
transposeRowGroups :: Col (RowGroup a) -> [SegmentedColumn a] Source #
Break down several RowGroups
, which conceptually form a column by
themselves, into a list of columns.
mapRowGroupColumns :: [(b, a -> b)] -> RowGroup a -> [[b]] Source #
Map each column with the corresponding function and replace empty inputs with the given value.