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 #

show :: Cell a -> String #

showList :: [Cell a] -> ShowS #

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

Defined in Text.GridTable

Methods

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

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

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

Defined in Text.GridTable

Methods

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

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

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

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

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

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

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

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

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