Copyright | © 2022 Albert Krewinkel |
---|---|
License | MIT |
Maintainer | Albert Krewinkel <[email protected]> |
Safe Haskell | None |
Language | Haskell2010 |
Text.GridTable
Description
Parse reStructuredText-style grid tables.
Synopsis
- module Text.GridTable.ArrayTable
- gridTable :: forall s (m :: Type -> Type) u. Stream s m Char => ParsecT s u m (ArrayTable [Text])
- data Cell a = Cell {
- cellContent :: a
- cellRowSpan :: RowSpan
- cellColSpan :: ColSpan
- rows :: ArrayTable a -> [[Cell a]]
Documentation
module Text.GridTable.ArrayTable
Parse from character stream
gridTable :: forall s (m :: Type -> Type) u. Stream s m Char => ParsecT s u m (ArrayTable [Text]) Source #
Parses a grid table.
List-based representation
Raw grid table cell
Constructors
Cell | |
Fields
|
rows :: ArrayTable a -> [[Cell a]] Source #
Returns the rows of a grid table as lists of simple cells.