| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Ltml.Common
Synopsis
- data Flagged flag a = Flagged flag a
- type Flagged' = Flagged Bool
- flagMap :: (fl -> fl') -> Flagged fl a -> Flagged fl' a
- type ParseError = ParseErrorBundle Text Void
- type Parsed = Either ParseError
- data NavTocHeaded a = NavTocHeaded NavTocHeading a
Documentation
Constructors
| Flagged flag a |
Instances
| TraversableF (Flagged flag) Source # | |
| ToPreLaTeXM a => ToPreLaTeXM (Flagged' a) Source # | This instance manages which part of the AST is actually translated into LaTeX; Everything else is just used to build up the needed context (labels, etc.) |
Defined in Language.Ltml.ToLaTeX.ToPreLaTeXM Methods toPreLaTeXM :: Flagged' a -> State GlobalState PreLaTeX Source # | |
| Functor (Flagged flag) Source # | |
| (Show flag, Show a) => Show (Flagged flag a) Source # | |
type Flagged' = Flagged Bool Source #
Boolean flagging wrapper for input tree nodes
(FlaggedInputTree) and AST nodes.
The flag indicates whether output should be generated for the respective flagged node.
Flags always match between corresponding input tree nodes and AST nodes; in particular, in the AST, the flag is only ever positive for nodes that correspond to a node in the input tree.
type ParseError = ParseErrorBundle Text Void Source #
type Parsed = Either ParseError Source #
denotes a node that may (!) have been parsed from text
(a leaf of the input tree), in which case parsing may have failed.
It only ever wraps nodes that correspond to nodes in the input tree.
I.e., this is used with nodes that can correspond to leaf nodes in the
input tree.Parsed x