Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class HasPipeTable il bl where
- pipeTable :: [ColAlignment] -> [il] -> [[il]] -> bl
- data ColAlignment
- pipeTableSpec :: (Monad m, IsBlock il bl, IsInline il, HasPipeTable il bl) => SyntaxSpec m il bl
Documentation
class HasPipeTable il bl where Source #
pipeTable :: [ColAlignment] -> [il] -> [[il]] -> bl Source #
Instances
HasPipeTable (Html a) (Html a) Source # | |
Defined in Commonmark.Extensions.PipeTable | |
(HasPipeTable i b, Monoid b) => HasPipeTable (WithSourceMap i) (WithSourceMap b) Source # | |
Defined in Commonmark.Extensions.PipeTable pipeTable :: [ColAlignment] -> [WithSourceMap i] -> [[WithSourceMap i]] -> WithSourceMap b Source # |
data ColAlignment Source #
Instances
Eq ColAlignment Source # | |
Defined in Commonmark.Extensions.PipeTable (==) :: ColAlignment -> ColAlignment -> Bool # (/=) :: ColAlignment -> ColAlignment -> Bool # | |
Data ColAlignment Source # | |
Defined in Commonmark.Extensions.PipeTable gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ColAlignment -> c ColAlignment # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ColAlignment # toConstr :: ColAlignment -> Constr # dataTypeOf :: ColAlignment -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ColAlignment) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ColAlignment) # gmapT :: (forall b. Data b => b -> b) -> ColAlignment -> ColAlignment # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ColAlignment -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ColAlignment -> r # gmapQ :: (forall d. Data d => d -> u) -> ColAlignment -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ColAlignment -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ColAlignment -> m ColAlignment # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ColAlignment -> m ColAlignment # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ColAlignment -> m ColAlignment # | |
Show ColAlignment Source # | |
Defined in Commonmark.Extensions.PipeTable showsPrec :: Int -> ColAlignment -> ShowS # show :: ColAlignment -> String # showList :: [ColAlignment] -> ShowS # |
pipeTableSpec :: (Monad m, IsBlock il bl, IsInline il, HasPipeTable il bl) => SyntaxSpec m il bl Source #
Syntax for pipe tables. Note that this should generally be
placed AFTER the syntax spec for lists, headings, and other block-level
constructs, to avoid bad results when non-table lines contain pipe
characters: use defaultSyntaxSpec <> pipeTableSpec
rather
than pipeTableSpec <> defaultSyntaxSpec
.