module Language.Lsd.AST.Type.Table
( TableType (..)
, RowType (..)
, DefaultCellType (..)
, CellType (..)
, CellFormat (..)
, BGColor (..)
)
where
import Data.Typography (Typography)
import Data.Void (Void)
import Language.Lsd.AST.Common (Keyword)
import Language.Lsd.AST.SimpleRegex (Disjunction, Star)
import Language.Lsd.AST.Type.Text (TextType)
data TableType
= TableType
Keyword
DefaultCellType
(Star RowType)
data RowType
= RowType
Keyword
(Star (Disjunction CellType))
data BGColor = White | Gray
deriving (Int -> BGColor -> ShowS
[BGColor] -> ShowS
BGColor -> String
(Int -> BGColor -> ShowS)
-> (BGColor -> String) -> ([BGColor] -> ShowS) -> Show BGColor
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BGColor -> ShowS
showsPrec :: Int -> BGColor -> ShowS
$cshow :: BGColor -> String
show :: BGColor -> String
$cshowList :: [BGColor] -> ShowS
showList :: [BGColor] -> ShowS
Show, BGColor -> BGColor -> Bool
(BGColor -> BGColor -> Bool)
-> (BGColor -> BGColor -> Bool) -> Eq BGColor
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BGColor -> BGColor -> Bool
== :: BGColor -> BGColor -> Bool
$c/= :: BGColor -> BGColor -> Bool
/= :: BGColor -> BGColor -> Bool
Eq)
data CellFormat
= CellFormat
BGColor
Typography
deriving (Int -> CellFormat -> ShowS
[CellFormat] -> ShowS
CellFormat -> String
(Int -> CellFormat -> ShowS)
-> (CellFormat -> String)
-> ([CellFormat] -> ShowS)
-> Show CellFormat
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CellFormat -> ShowS
showsPrec :: Int -> CellFormat -> ShowS
$cshow :: CellFormat -> String
show :: CellFormat -> String
$cshowList :: [CellFormat] -> ShowS
showList :: [CellFormat] -> ShowS
Show)
newtype DefaultCellType = DefaultCellType CellType
data CellType
= CellType
Keyword
CellFormat
(TextType Void)