gridtables-0.1.0.0: Parser for reStructuredText-style grid tables.
Copyright© 2022 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <albert@zeitkraut.de>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.GridTable

Description

Parse reStructuredText-style grid tables.

Synopsis

Documentation

Parse from character stream

gridTable :: Stream s m Char => ParsecT s u m (ArrayTable [Text]) Source #

Parses a grid table.

List-based representation

data Cell a Source #

Raw grid table cell

Constructors

Cell 

Instances

Instances details
Show a => Show (Cell a) Source # 
Instance details

Defined in Text.GridTable

Methods

showsPrec :: Int -> Cell a -> ShowS Source #

show :: Cell a -> String Source #

showList :: [Cell a] -> ShowS Source #

Eq a => Eq (Cell a) Source # 
Instance details

Defined in Text.GridTable

Methods

(==) :: Cell a -> Cell a -> Bool Source #

(/=) :: Cell a -> Cell a -> Bool Source #

Ord a => Ord (Cell a) Source # 
Instance details

Defined in Text.GridTable

Methods

compare :: Cell a -> Cell a -> Ordering Source #

(<) :: Cell a -> Cell a -> Bool Source #

(<=) :: Cell a -> Cell a -> Bool Source #

(>) :: Cell a -> Cell a -> Bool Source #

(>=) :: Cell a -> Cell a -> Bool Source #

max :: Cell a -> Cell a -> Cell a Source #

min :: Cell a -> Cell a -> Cell a Source #

rows :: ArrayTable a -> [[Cell a]] Source #

Returns the rows of a grid table as lists of simple cells.