Safe Haskell | None |
---|---|
Language | Haskell2010 |
DOCUMENT
THEMATIC_BREAK
(has no children)PARAGRAPH
BLOCK_QUOTE
HTML_BLOCK
(has no children)CUSTOM_BLOCK
CODE_BLOCK
(has no children)HEADING
LIST
ITEM
TEXT
(has no children)SOFTBREAK
(has no children)LINEBREAK
(has no children)HTML_INLINE
(has no children)CUSTOM_INLINE
CODE
(has no children)EMPH
STRONG
LINK
IMAGE
Pattern synonyms for working with the cmark AST. You can construct and deconstruct the AST with them as if they were ordinary constructors.
Each pattern comes in two versions; if you don't care about position info,
use the one with the underscore. (If you try to use it for construction,
it will use Nothing
as position info.)
Since list items can only contain ITEM
, we provide additional patterns
for lists – ListItems
and ListItems_
– which automatically unwrap them.
- pattern Document :: Maybe PosInfo -> [Node] -> Node
- pattern Document_ :: [Node] -> Node
- pattern ThematicBreak :: Maybe PosInfo -> Node
- pattern ThematicBreak_ :: Node
- pattern Paragraph :: Maybe PosInfo -> [Node] -> Node
- pattern Paragraph_ :: [Node] -> Node
- pattern BlockQuote :: Maybe PosInfo -> [Node] -> Node
- pattern BlockQuote_ :: [Node] -> Node
- pattern HtmlBlock :: Maybe PosInfo -> Text -> Node
- pattern HtmlBlock_ :: Text -> Node
- pattern CustomBlock :: Maybe PosInfo -> OnEnter -> OnExit -> [Node] -> Node
- pattern CustomBlock_ :: OnEnter -> OnExit -> [Node] -> Node
- pattern CodeBlock :: Maybe PosInfo -> Info -> Text -> Node
- pattern CodeBlock_ :: Info -> Text -> Node
- pattern Heading :: Maybe PosInfo -> Level -> [Node] -> Node
- pattern Heading_ :: Level -> [Node] -> Node
- pattern List :: Maybe PosInfo -> ListAttributes -> [Node] -> Node
- pattern List_ :: ListAttributes -> [Node] -> Node
- pattern ListItems :: Maybe PosInfo -> ListAttributes -> [(Maybe PosInfo, [Node])] -> Node
- pattern ListItems_ :: ListAttributes -> [[Node]] -> Node
- pattern Item :: Maybe PosInfo -> [Node] -> Node
- pattern Item_ :: [Node] -> Node
- pattern Text :: Maybe PosInfo -> Text -> Node
- pattern Text_ :: Text -> Node
- pattern Softbreak :: Maybe PosInfo -> Node
- pattern Softbreak_ :: Node
- pattern Linebreak :: Maybe PosInfo -> Node
- pattern Linebreak_ :: Node
- pattern HtmlInline :: Maybe PosInfo -> Text -> Node
- pattern HtmlInline_ :: Text -> Node
- pattern CustomInline :: Maybe PosInfo -> OnEnter -> OnExit -> [Node] -> Node
- pattern CustomInline_ :: OnEnter -> OnExit -> [Node] -> Node
- pattern Code :: Maybe PosInfo -> Text -> Node
- pattern Code_ :: Text -> Node
- pattern Emph :: Maybe PosInfo -> [Node] -> Node
- pattern Emph_ :: [Node] -> Node
- pattern Strong :: Maybe PosInfo -> [Node] -> Node
- pattern Strong_ :: [Node] -> Node
- pattern Link :: Maybe PosInfo -> Url -> Title -> [Node] -> Node
- pattern Link_ :: Url -> Title -> [Node] -> Node
- pattern Image :: Maybe PosInfo -> Url -> Title -> [Node] -> Node
- pattern Image_ :: Url -> Title -> [Node] -> Node
DOCUMENT
THEMATIC_BREAK
(has no children)
pattern ThematicBreak_ :: Node Source #
PARAGRAPH
pattern Paragraph_ :: [Node] -> Node Source #
BLOCK_QUOTE
pattern BlockQuote_ :: [Node] -> Node Source #
HTML_BLOCK
(has no children)
pattern HtmlBlock_ :: Text -> Node Source #
CUSTOM_BLOCK
pattern CustomBlock_ :: OnEnter -> OnExit -> [Node] -> Node Source #
CODE_BLOCK
(has no children)
HEADING
LIST
pattern ListItems_ :: ListAttributes -> [[Node]] -> Node Source #
ITEM
TEXT
(has no children)
SOFTBREAK
(has no children)
pattern Softbreak_ :: Node Source #
LINEBREAK
(has no children)
pattern Linebreak_ :: Node Source #
HTML_INLINE
(has no children)
pattern HtmlInline_ :: Text -> Node Source #
CUSTOM_INLINE
pattern CustomInline_ :: OnEnter -> OnExit -> [Node] -> Node Source #