Safe Haskell | None |
---|---|
Language | Haskell2010 |
Djot.AST
Synopsis
- data Inline
- = Str ByteString
- | Emph Inlines
- | Strong Inlines
- | Highlight Inlines
- | Insert Inlines
- | Delete Inlines
- | Superscript Inlines
- | Subscript Inlines
- | Verbatim ByteString
- | Symbol ByteString
- | Math MathStyle ByteString
- | Link Inlines Target
- | Image Inlines Target
- | Span Inlines
- | FootnoteReference ByteString
- | UrlLink ByteString
- | EmailLink ByteString
- | RawInline Format ByteString
- | NonBreakingSpace
- | Quoted QuoteType Inlines
- | SoftBreak
- | HardBreak
- newtype Many a = Many {
- unMany :: Seq a
- type Inlines = Many (Node Inline)
- data MathStyle
- newtype Format = Format {
- unFormat :: ByteString
- data Node a = Node Pos Attr a
- data Pos
- addAttr :: Attr -> Node a -> Node a
- addPos :: Pos -> Node a -> Node a
- data Block
- = Para Inlines
- | Section Blocks
- | Heading Int Inlines
- | BlockQuote Blocks
- | CodeBlock ByteString ByteString
- | Div Blocks
- | OrderedList OrderedListAttributes ListSpacing [Blocks]
- | BulletList ListSpacing [Blocks]
- | TaskList ListSpacing [(TaskStatus, Blocks)]
- | DefinitionList ListSpacing [(Inlines, Blocks)]
- | ThematicBreak
- | Table (Maybe Caption) [[Cell]]
- | RawBlock Format ByteString
- type Blocks = Many (Node Block)
- data Doc = Doc {
- docBlocks :: Blocks
- docFootnotes :: NoteMap
- docReferences :: ReferenceMap
- docAutoReferences :: ReferenceMap
- docAutoIdentifiers :: Set ByteString
- newtype NoteMap = NoteMap {}
- insertNote :: ByteString -> Blocks -> NoteMap -> NoteMap
- lookupNote :: ByteString -> NoteMap -> Maybe Blocks
- newtype ReferenceMap = ReferenceMap {
- unReferenceMap :: Map ByteString (ByteString, Attr)
- insertReference :: ByteString -> (ByteString, Attr) -> ReferenceMap -> ReferenceMap
- lookupReference :: ByteString -> ReferenceMap -> Maybe (ByteString, Attr)
- normalizeLabel :: ByteString -> ByteString
- newtype Attr = Attr [(ByteString, ByteString)]
- data Target
- data TaskStatus
- data Align
- data Cell = Cell CellType Align Inlines
- data CellType
- newtype Caption = Caption Blocks
- data ListSpacing
- data OrderedListAttributes = OrderedListAttributes {}
- data OrderedListDelim
- data OrderedListStyle
- data QuoteType
- delete :: Inlines -> Inlines
- displayMath :: ByteString -> Inlines
- insert :: Inlines -> Inlines
- emailLink :: ByteString -> Inlines
- emph :: Inlines -> Inlines
- footnoteReference :: ByteString -> Inlines
- hardBreak :: Inlines
- highlight :: Inlines -> Inlines
- image :: Inlines -> Target -> Inlines
- inlineMath :: ByteString -> Inlines
- link :: Inlines -> Target -> Inlines
- nonBreakingSpace :: Inlines
- rawInline :: Format -> ByteString -> Inlines
- softBreak :: Inlines
- span_ :: Inlines -> Inlines
- str :: ByteString -> Inlines
- strong :: Inlines -> Inlines
- subscript :: Inlines -> Inlines
- superscript :: Inlines -> Inlines
- singleQuoted :: Inlines -> Inlines
- doubleQuoted :: Inlines -> Inlines
- symbol :: ByteString -> Inlines
- verbatim :: ByteString -> Inlines
- urlLink :: ByteString -> Inlines
- para :: Inlines -> Blocks
- section :: Blocks -> Blocks
- heading :: Int -> Inlines -> Blocks
- blockQuote :: Blocks -> Blocks
- codeBlock :: ByteString -> ByteString -> Blocks
- div :: Blocks -> Blocks
- bulletList :: ListSpacing -> [Blocks] -> Blocks
- orderedList :: OrderedListAttributes -> ListSpacing -> [Blocks] -> Blocks
- definitionList :: ListSpacing -> [(Inlines, Blocks)] -> Blocks
- taskList :: ListSpacing -> [(TaskStatus, Blocks)] -> Blocks
- thematicBreak :: Blocks
- table :: Maybe Caption -> [[Cell]] -> Blocks
- rawBlock :: Format -> ByteString -> Blocks
- inlinesToByteString :: Inlines -> ByteString
Documentation
Constructors
Str ByteString | |
Emph Inlines | |
Strong Inlines | |
Highlight Inlines | |
Insert Inlines | |
Delete Inlines | |
Superscript Inlines | |
Subscript Inlines | |
Verbatim ByteString | |
Symbol ByteString | |
Math MathStyle ByteString | |
Link Inlines Target | |
Image Inlines Target | |
Span Inlines | |
FootnoteReference ByteString | |
UrlLink ByteString | |
EmailLink ByteString | |
RawInline Format ByteString | |
NonBreakingSpace | |
Quoted QuoteType Inlines | |
SoftBreak | |
HardBreak |
Instances
Monoid Inlines Source # | |||||
Semigroup Inlines Source # | |||||
Data Inline Source # | |||||
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Inline -> c Inline gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Inline dataTypeOf :: Inline -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Inline) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Inline) gmapT :: (forall b. Data b => b -> b) -> Inline -> Inline gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Inline -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Inline -> r gmapQ :: (forall d. Data d => d -> u) -> Inline -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Inline -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Inline -> m Inline gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Inline -> m Inline gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Inline -> m Inline | |||||
Generic Inline Source # | |||||
Defined in Djot.AST Associated Types
| |||||
Show Inline Source # | |||||
Eq Inline Source # | |||||
Ord Inline Source # | |||||
Lift Inline Source # | |||||
type Rep Inline Source # | |||||
Defined in Djot.AST type Rep Inline = D1 ('MetaData "Inline" "Djot.AST" "djot-0.1.2.2-15gr36Ga7owLkYfuhIJqAO" 'False) ((((C1 ('MetaCons "Str" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)) :+: C1 ('MetaCons "Emph" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Inlines))) :+: (C1 ('MetaCons "Strong" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Inlines)) :+: (C1 ('MetaCons "Highlight" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Inlines)) :+: C1 ('MetaCons "Insert" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Inlines))))) :+: ((C1 ('MetaCons "Delete" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Inlines)) :+: (C1 ('MetaCons "Superscript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Inlines)) :+: C1 ('MetaCons "Subscript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Inlines)))) :+: (C1 ('MetaCons "Verbatim" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)) :+: (C1 ('MetaCons "Symbol" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)) :+: C1 ('MetaCons "Math" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MathStyle) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)))))) :+: (((C1 ('MetaCons "Link" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Inlines) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Target)) :+: C1 ('MetaCons "Image" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Inlines) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Target))) :+: (C1 ('MetaCons "Span" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Inlines)) :+: (C1 ('MetaCons "FootnoteReference" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)) :+: C1 ('MetaCons "UrlLink" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))))) :+: ((C1 ('MetaCons "EmailLink" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)) :+: (C1 ('MetaCons "RawInline" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Format) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)) :+: C1 ('MetaCons "NonBreakingSpace" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "Quoted" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 QuoteType) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Inlines)) :+: (C1 ('MetaCons "SoftBreak" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "HardBreak" 'PrefixI 'False) (U1 :: Type -> Type)))))) |
Instances
Functor Many Source # | |
Monoid Blocks Source # | |
Monoid Inlines Source # | |
Semigroup Blocks Source # | |
Semigroup Inlines Source # | |
Foldable Many Source # | |
Defined in Djot.AST Methods fold :: Monoid m => Many m -> m foldMap :: Monoid m => (a -> m) -> Many a -> m foldMap' :: Monoid m => (a -> m) -> Many a -> m foldr :: (a -> b -> b) -> b -> Many a -> b foldr' :: (a -> b -> b) -> b -> Many a -> b foldl :: (b -> a -> b) -> b -> Many a -> b foldl' :: (b -> a -> b) -> b -> Many a -> b foldr1 :: (a -> a -> a) -> Many a -> a foldl1 :: (a -> a -> a) -> Many a -> a elem :: Eq a => a -> Many a -> Bool maximum :: Ord a => Many a -> a | |
Traversable Many Source # | |
Lift a => Lift (Many a :: Type) Source # | |
Data a => Data (Many a) Source # | |
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Many a -> c (Many a) gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Many a) dataTypeOf :: Many a -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Many a)) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Many a)) gmapT :: (forall b. Data b => b -> b) -> Many a -> Many a gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Many a -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Many a -> r gmapQ :: (forall d. Data d => d -> u) -> Many a -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Many a -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Many a -> m (Many a) gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Many a -> m (Many a) gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Many a -> m (Many a) | |
Generic (Many a) Source # | |
Show a => Show (Many a) Source # | |
Eq a => Eq (Many a) Source # | |
Ord a => Ord (Many a) Source # | |
type Rep (Many a) Source # | |
Constructors
DisplayMath | |
InlineMath |
Instances
Data MathStyle Source # | |
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MathStyle -> c MathStyle gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MathStyle toConstr :: MathStyle -> Constr dataTypeOf :: MathStyle -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MathStyle) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MathStyle) gmapT :: (forall b. Data b => b -> b) -> MathStyle -> MathStyle gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MathStyle -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MathStyle -> r gmapQ :: (forall d. Data d => d -> u) -> MathStyle -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> MathStyle -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> MathStyle -> m MathStyle gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MathStyle -> m MathStyle gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MathStyle -> m MathStyle | |
Generic MathStyle Source # | |
Show MathStyle Source # | |
Eq MathStyle Source # | |
Ord MathStyle Source # | |
Defined in Djot.AST | |
Lift MathStyle Source # | |
type Rep MathStyle Source # | |
Instances
Data Format Source # | |
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Format -> c Format gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Format dataTypeOf :: Format -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Format) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Format) gmapT :: (forall b. Data b => b -> b) -> Format -> Format gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Format -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Format -> r gmapQ :: (forall d. Data d => d -> u) -> Format -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Format -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Format -> m Format gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Format -> m Format gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Format -> m Format | |
Generic Format Source # | |
Show Format Source # | |
Eq Format Source # | |
Ord Format Source # | |
Lift Format Source # | |
type Rep Format Source # | |
Instances
Functor Node Source # | |||||
Monoid Blocks Source # | |||||
Monoid Inlines Source # | |||||
Semigroup Blocks Source # | |||||
Semigroup Inlines Source # | |||||
Foldable Node Source # | |||||
Defined in Djot.AST Methods fold :: Monoid m => Node m -> m foldMap :: Monoid m => (a -> m) -> Node a -> m foldMap' :: Monoid m => (a -> m) -> Node a -> m foldr :: (a -> b -> b) -> b -> Node a -> b foldr' :: (a -> b -> b) -> b -> Node a -> b foldl :: (b -> a -> b) -> b -> Node a -> b foldl' :: (b -> a -> b) -> b -> Node a -> b foldr1 :: (a -> a -> a) -> Node a -> a foldl1 :: (a -> a -> a) -> Node a -> a elem :: Eq a => a -> Node a -> Bool maximum :: Ord a => Node a -> a | |||||
Traversable Node Source # | |||||
Lift a => Lift (Node a :: Type) Source # | |||||
Data a => Data (Node a) Source # | |||||
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Node a -> c (Node a) gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Node a) dataTypeOf :: Node a -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Node a)) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Node a)) gmapT :: (forall b. Data b => b -> b) -> Node a -> Node a gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Node a -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Node a -> r gmapQ :: (forall d. Data d => d -> u) -> Node a -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Node a -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Node a -> m (Node a) gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Node a -> m (Node a) gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Node a -> m (Node a) | |||||
Generic (Node a) Source # | |||||
Defined in Djot.AST Associated Types
| |||||
Show a => Show (Node a) Source # | |||||
Eq a => Eq (Node a) Source # | |||||
Ord a => Ord (Node a) Source # | |||||
type Rep (Node a) Source # | |||||
Defined in Djot.AST type Rep (Node a) = D1 ('MetaData "Node" "Djot.AST" "djot-0.1.2.2-15gr36Ga7owLkYfuhIJqAO" 'False) (C1 ('MetaCons "Node" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Pos) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a)))) |
Instances
Monoid Pos Source # | |||||
Semigroup Pos Source # | |||||
Data Pos Source # | |||||
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Pos -> c Pos gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Pos dataTypeOf :: Pos -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Pos) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Pos) gmapT :: (forall b. Data b => b -> b) -> Pos -> Pos gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Pos -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Pos -> r gmapQ :: (forall d. Data d => d -> u) -> Pos -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Pos -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Pos -> m Pos gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Pos -> m Pos gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Pos -> m Pos | |||||
Generic Pos Source # | |||||
Defined in Djot.AST Associated Types
| |||||
Show Pos Source # | |||||
Eq Pos Source # | |||||
Ord Pos Source # | |||||
Lift Pos Source # | |||||
type Rep Pos Source # | |||||
Defined in Djot.AST type Rep Pos = D1 ('MetaData "Pos" "Djot.AST" "djot-0.1.2.2-15gr36Ga7owLkYfuhIJqAO" 'False) (C1 ('MetaCons "NoPos" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Pos" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))) |
Constructors
Para Inlines | |
Section Blocks | |
Heading Int Inlines | |
BlockQuote Blocks | |
CodeBlock ByteString ByteString | |
Div Blocks | |
OrderedList OrderedListAttributes ListSpacing [Blocks] | |
BulletList ListSpacing [Blocks] | |
TaskList ListSpacing [(TaskStatus, Blocks)] | |
DefinitionList ListSpacing [(Inlines, Blocks)] | |
ThematicBreak | |
Table (Maybe Caption) [[Cell]] | |
RawBlock Format ByteString |
Instances
Monoid Blocks Source # | |||||
Semigroup Blocks Source # | |||||
Data Block Source # | |||||
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Block -> c Block gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Block dataTypeOf :: Block -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Block) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Block) gmapT :: (forall b. Data b => b -> b) -> Block -> Block gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Block -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Block -> r gmapQ :: (forall d. Data d => d -> u) -> Block -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Block -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Block -> m Block gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Block -> m Block gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Block -> m Block | |||||
Generic Block Source # | |||||
Defined in Djot.AST Associated Types
| |||||
Show Block Source # | |||||
Eq Block Source # | |||||
Ord Block Source # | |||||
Lift Block Source # | |||||
type Rep Block Source # | |||||
Defined in Djot.AST type Rep Block = D1 ('MetaData "Block" "Djot.AST" "djot-0.1.2.2-15gr36Ga7owLkYfuhIJqAO" 'False) (((C1 ('MetaCons "Para" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Inlines)) :+: (C1 ('MetaCons "Section" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Blocks)) :+: C1 ('MetaCons "Heading" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Inlines)))) :+: (C1 ('MetaCons "BlockQuote" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Blocks)) :+: (C1 ('MetaCons "CodeBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)) :+: C1 ('MetaCons "Div" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Blocks))))) :+: ((C1 ('MetaCons "OrderedList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 OrderedListAttributes) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ListSpacing) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Blocks]))) :+: (C1 ('MetaCons "BulletList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ListSpacing) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Blocks])) :+: C1 ('MetaCons "TaskList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ListSpacing) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [(TaskStatus, Blocks)])))) :+: ((C1 ('MetaCons "DefinitionList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ListSpacing) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [(Inlines, Blocks)])) :+: C1 ('MetaCons "ThematicBreak" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Table" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Caption)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [[Cell]])) :+: C1 ('MetaCons "RawBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Format) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)))))) |
Constructors
Doc | |
Fields
|
Instances
Monoid Doc Source # | |||||
Semigroup Doc Source # | |||||
Data Doc Source # | |||||
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Doc -> c Doc gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Doc dataTypeOf :: Doc -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Doc) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Doc) gmapT :: (forall b. Data b => b -> b) -> Doc -> Doc gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Doc -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Doc -> r gmapQ :: (forall d. Data d => d -> u) -> Doc -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Doc -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Doc -> m Doc gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Doc -> m Doc gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Doc -> m Doc | |||||
Generic Doc Source # | |||||
Defined in Djot.AST Associated Types
| |||||
Show Doc Source # | |||||
Eq Doc Source # | |||||
Ord Doc Source # | |||||
Lift Doc Source # | |||||
type Rep Doc Source # | |||||
Defined in Djot.AST type Rep Doc = D1 ('MetaData "Doc" "Djot.AST" "djot-0.1.2.2-15gr36Ga7owLkYfuhIJqAO" 'False) (C1 ('MetaCons "Doc" 'PrefixI 'True) ((S1 ('MetaSel ('Just "docBlocks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Blocks) :*: S1 ('MetaSel ('Just "docFootnotes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NoteMap)) :*: (S1 ('MetaSel ('Just "docReferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ReferenceMap) :*: (S1 ('MetaSel ('Just "docAutoReferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ReferenceMap) :*: S1 ('MetaSel ('Just "docAutoIdentifiers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Set ByteString)))))) |
A map from labels to contents.
Instances
Monoid NoteMap Source # | |
Semigroup NoteMap Source # | |
Data NoteMap Source # | |
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> NoteMap -> c NoteMap gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c NoteMap dataTypeOf :: NoteMap -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c NoteMap) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c NoteMap) gmapT :: (forall b. Data b => b -> b) -> NoteMap -> NoteMap gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> NoteMap -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> NoteMap -> r gmapQ :: (forall d. Data d => d -> u) -> NoteMap -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> NoteMap -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> NoteMap -> m NoteMap gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> NoteMap -> m NoteMap gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> NoteMap -> m NoteMap | |
Generic NoteMap Source # | |
Show NoteMap Source # | |
Eq NoteMap Source # | |
Ord NoteMap Source # | |
Lift NoteMap Source # | |
type Rep NoteMap Source # | |
lookupNote :: ByteString -> NoteMap -> Maybe Blocks Source #
newtype ReferenceMap Source #
Constructors
ReferenceMap | |
Fields
|
Instances
Monoid ReferenceMap Source # | |||||
Defined in Djot.AST Methods mappend :: ReferenceMap -> ReferenceMap -> ReferenceMap mconcat :: [ReferenceMap] -> ReferenceMap | |||||
Semigroup ReferenceMap Source # | |||||
Defined in Djot.AST Methods (<>) :: ReferenceMap -> ReferenceMap -> ReferenceMap sconcat :: NonEmpty ReferenceMap -> ReferenceMap stimes :: Integral b => b -> ReferenceMap -> ReferenceMap | |||||
Data ReferenceMap Source # | |||||
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ReferenceMap -> c ReferenceMap gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ReferenceMap toConstr :: ReferenceMap -> Constr dataTypeOf :: ReferenceMap -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ReferenceMap) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ReferenceMap) gmapT :: (forall b. Data b => b -> b) -> ReferenceMap -> ReferenceMap gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ReferenceMap -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ReferenceMap -> r gmapQ :: (forall d. Data d => d -> u) -> ReferenceMap -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> ReferenceMap -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> ReferenceMap -> m ReferenceMap gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ReferenceMap -> m ReferenceMap gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ReferenceMap -> m ReferenceMap | |||||
Generic ReferenceMap Source # | |||||
Defined in Djot.AST Associated Types
| |||||
Show ReferenceMap Source # | |||||
Defined in Djot.AST Methods showsPrec :: Int -> ReferenceMap -> ShowS show :: ReferenceMap -> String showList :: [ReferenceMap] -> ShowS | |||||
Eq ReferenceMap Source # | |||||
Defined in Djot.AST | |||||
Ord ReferenceMap Source # | |||||
Defined in Djot.AST Methods compare :: ReferenceMap -> ReferenceMap -> Ordering (<) :: ReferenceMap -> ReferenceMap -> Bool (<=) :: ReferenceMap -> ReferenceMap -> Bool (>) :: ReferenceMap -> ReferenceMap -> Bool (>=) :: ReferenceMap -> ReferenceMap -> Bool max :: ReferenceMap -> ReferenceMap -> ReferenceMap min :: ReferenceMap -> ReferenceMap -> ReferenceMap | |||||
Lift ReferenceMap Source # | |||||
Defined in Djot.AST Methods lift :: Quote m => ReferenceMap -> m Exp liftTyped :: forall (m :: Type -> Type). Quote m => ReferenceMap -> Code m ReferenceMap | |||||
type Rep ReferenceMap Source # | |||||
Defined in Djot.AST type Rep ReferenceMap = D1 ('MetaData "ReferenceMap" "Djot.AST" "djot-0.1.2.2-15gr36Ga7owLkYfuhIJqAO" 'True) (C1 ('MetaCons "ReferenceMap" 'PrefixI 'True) (S1 ('MetaSel ('Just "unReferenceMap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map ByteString (ByteString, Attr))))) |
insertReference :: ByteString -> (ByteString, Attr) -> ReferenceMap -> ReferenceMap Source #
lookupReference :: ByteString -> ReferenceMap -> Maybe (ByteString, Attr) Source #
normalizeLabel :: ByteString -> ByteString Source #
Constructors
Attr [(ByteString, ByteString)] |
Instances
Monoid Attr Source # | |
Semigroup Attr Source # | |
Data Attr Source # | |
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Attr -> c Attr gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Attr dataTypeOf :: Attr -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Attr) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Attr) gmapT :: (forall b. Data b => b -> b) -> Attr -> Attr gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Attr -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Attr -> r gmapQ :: (forall d. Data d => d -> u) -> Attr -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Attr -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Attr -> m Attr gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Attr -> m Attr gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Attr -> m Attr | |
Generic Attr Source # | |
Show Attr Source # | |
Eq Attr Source # | |
Ord Attr Source # | |
Lift Attr Source # | |
type Rep Attr Source # | |
Instances
Data Target Source # | |||||
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Target -> c Target gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Target dataTypeOf :: Target -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Target) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Target) gmapT :: (forall b. Data b => b -> b) -> Target -> Target gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Target -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Target -> r gmapQ :: (forall d. Data d => d -> u) -> Target -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Target -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Target -> m Target gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Target -> m Target gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Target -> m Target | |||||
Generic Target Source # | |||||
Defined in Djot.AST Associated Types
| |||||
Show Target Source # | |||||
Eq Target Source # | |||||
Ord Target Source # | |||||
Lift Target Source # | |||||
type Rep Target Source # | |||||
Defined in Djot.AST type Rep Target = D1 ('MetaData "Target" "Djot.AST" "djot-0.1.2.2-15gr36Ga7owLkYfuhIJqAO" 'False) (C1 ('MetaCons "Direct" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)) :+: C1 ('MetaCons "Reference" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))) |
data TaskStatus Source #
Constructors
Complete | |
Incomplete |
Instances
Data TaskStatus Source # | |||||
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TaskStatus -> c TaskStatus gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TaskStatus toConstr :: TaskStatus -> Constr dataTypeOf :: TaskStatus -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TaskStatus) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TaskStatus) gmapT :: (forall b. Data b => b -> b) -> TaskStatus -> TaskStatus gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TaskStatus -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TaskStatus -> r gmapQ :: (forall d. Data d => d -> u) -> TaskStatus -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> TaskStatus -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> TaskStatus -> m TaskStatus gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TaskStatus -> m TaskStatus gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TaskStatus -> m TaskStatus | |||||
Generic TaskStatus Source # | |||||
Defined in Djot.AST Associated Types
| |||||
Show TaskStatus Source # | |||||
Defined in Djot.AST Methods showsPrec :: Int -> TaskStatus -> ShowS show :: TaskStatus -> String showList :: [TaskStatus] -> ShowS | |||||
Eq TaskStatus Source # | |||||
Defined in Djot.AST | |||||
Ord TaskStatus Source # | |||||
Defined in Djot.AST Methods compare :: TaskStatus -> TaskStatus -> Ordering (<) :: TaskStatus -> TaskStatus -> Bool (<=) :: TaskStatus -> TaskStatus -> Bool (>) :: TaskStatus -> TaskStatus -> Bool (>=) :: TaskStatus -> TaskStatus -> Bool max :: TaskStatus -> TaskStatus -> TaskStatus min :: TaskStatus -> TaskStatus -> TaskStatus | |||||
Lift TaskStatus Source # | |||||
Defined in Djot.AST Methods lift :: Quote m => TaskStatus -> m Exp liftTyped :: forall (m :: Type -> Type). Quote m => TaskStatus -> Code m TaskStatus | |||||
type Rep TaskStatus Source # | |||||
Defined in Djot.AST type Rep TaskStatus = D1 ('MetaData "TaskStatus" "Djot.AST" "djot-0.1.2.2-15gr36Ga7owLkYfuhIJqAO" 'False) (C1 ('MetaCons "Complete" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Incomplete" 'PrefixI 'False) (U1 :: Type -> Type)) |
Constructors
AlignLeft | |
AlignRight | |
AlignCenter | |
AlignDefault |
Instances
Data Align Source # | |||||
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Align -> c Align gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Align dataTypeOf :: Align -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Align) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Align) gmapT :: (forall b. Data b => b -> b) -> Align -> Align gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Align -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Align -> r gmapQ :: (forall d. Data d => d -> u) -> Align -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Align -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Align -> m Align gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Align -> m Align gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Align -> m Align | |||||
Generic Align Source # | |||||
Defined in Djot.AST Associated Types
| |||||
Show Align Source # | |||||
Eq Align Source # | |||||
Ord Align Source # | |||||
Lift Align Source # | |||||
type Rep Align Source # | |||||
Defined in Djot.AST type Rep Align = D1 ('MetaData "Align" "Djot.AST" "djot-0.1.2.2-15gr36Ga7owLkYfuhIJqAO" 'False) ((C1 ('MetaCons "AlignLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AlignRight" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "AlignCenter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AlignDefault" 'PrefixI 'False) (U1 :: Type -> Type))) |
Instances
Data Cell Source # | |||||
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Cell -> c Cell gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Cell dataTypeOf :: Cell -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Cell) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Cell) gmapT :: (forall b. Data b => b -> b) -> Cell -> Cell gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Cell -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Cell -> r gmapQ :: (forall d. Data d => d -> u) -> Cell -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Cell -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Cell -> m Cell gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Cell -> m Cell gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Cell -> m Cell | |||||
Generic Cell Source # | |||||
Defined in Djot.AST Associated Types
| |||||
Show Cell Source # | |||||
Eq Cell Source # | |||||
Ord Cell Source # | |||||
Lift Cell Source # | |||||
type Rep Cell Source # | |||||
Defined in Djot.AST type Rep Cell = D1 ('MetaData "Cell" "Djot.AST" "djot-0.1.2.2-15gr36Ga7owLkYfuhIJqAO" 'False) (C1 ('MetaCons "Cell" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CellType) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Align) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Inlines)))) |
Instances
Data CellType Source # | |
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CellType -> c CellType gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CellType toConstr :: CellType -> Constr dataTypeOf :: CellType -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CellType) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CellType) gmapT :: (forall b. Data b => b -> b) -> CellType -> CellType gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CellType -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CellType -> r gmapQ :: (forall d. Data d => d -> u) -> CellType -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> CellType -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> CellType -> m CellType gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CellType -> m CellType gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CellType -> m CellType | |
Generic CellType Source # | |
Show CellType Source # | |
Eq CellType Source # | |
Ord CellType Source # | |
Lift CellType Source # | |
type Rep CellType Source # | |
Instances
Data Caption Source # | |
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Caption -> c Caption gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Caption dataTypeOf :: Caption -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Caption) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Caption) gmapT :: (forall b. Data b => b -> b) -> Caption -> Caption gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Caption -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Caption -> r gmapQ :: (forall d. Data d => d -> u) -> Caption -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Caption -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Caption -> m Caption gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Caption -> m Caption gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Caption -> m Caption | |
Generic Caption Source # | |
Show Caption Source # | |
Eq Caption Source # | |
Ord Caption Source # | |
Lift Caption Source # | |
type Rep Caption Source # | |
data ListSpacing Source #
Instances
Data ListSpacing Source # | |||||
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListSpacing -> c ListSpacing gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListSpacing toConstr :: ListSpacing -> Constr dataTypeOf :: ListSpacing -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListSpacing) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListSpacing) gmapT :: (forall b. Data b => b -> b) -> ListSpacing -> ListSpacing gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListSpacing -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListSpacing -> r gmapQ :: (forall d. Data d => d -> u) -> ListSpacing -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> ListSpacing -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListSpacing -> m ListSpacing gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListSpacing -> m ListSpacing gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListSpacing -> m ListSpacing | |||||
Generic ListSpacing Source # | |||||
Defined in Djot.AST Associated Types
| |||||
Show ListSpacing Source # | |||||
Defined in Djot.AST Methods showsPrec :: Int -> ListSpacing -> ShowS show :: ListSpacing -> String showList :: [ListSpacing] -> ShowS | |||||
Eq ListSpacing Source # | |||||
Defined in Djot.AST | |||||
Ord ListSpacing Source # | |||||
Defined in Djot.AST Methods compare :: ListSpacing -> ListSpacing -> Ordering (<) :: ListSpacing -> ListSpacing -> Bool (<=) :: ListSpacing -> ListSpacing -> Bool (>) :: ListSpacing -> ListSpacing -> Bool (>=) :: ListSpacing -> ListSpacing -> Bool max :: ListSpacing -> ListSpacing -> ListSpacing min :: ListSpacing -> ListSpacing -> ListSpacing | |||||
Lift ListSpacing Source # | |||||
Defined in Djot.AST Methods lift :: Quote m => ListSpacing -> m Exp liftTyped :: forall (m :: Type -> Type). Quote m => ListSpacing -> Code m ListSpacing | |||||
type Rep ListSpacing Source # | |||||
Defined in Djot.AST type Rep ListSpacing = D1 ('MetaData "ListSpacing" "Djot.AST" "djot-0.1.2.2-15gr36Ga7owLkYfuhIJqAO" 'False) (C1 ('MetaCons "Tight" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Loose" 'PrefixI 'False) (U1 :: Type -> Type)) |
data OrderedListAttributes Source #
Constructors
OrderedListAttributes | |
Fields |
Instances
Data OrderedListAttributes Source # | |||||
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> OrderedListAttributes -> c OrderedListAttributes gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c OrderedListAttributes toConstr :: OrderedListAttributes -> Constr dataTypeOf :: OrderedListAttributes -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c OrderedListAttributes) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c OrderedListAttributes) gmapT :: (forall b. Data b => b -> b) -> OrderedListAttributes -> OrderedListAttributes gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> OrderedListAttributes -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> OrderedListAttributes -> r gmapQ :: (forall d. Data d => d -> u) -> OrderedListAttributes -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> OrderedListAttributes -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> OrderedListAttributes -> m OrderedListAttributes gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> OrderedListAttributes -> m OrderedListAttributes gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> OrderedListAttributes -> m OrderedListAttributes | |||||
Generic OrderedListAttributes Source # | |||||
Defined in Djot.AST Associated Types
Methods from :: OrderedListAttributes -> Rep OrderedListAttributes x to :: Rep OrderedListAttributes x -> OrderedListAttributes | |||||
Show OrderedListAttributes Source # | |||||
Defined in Djot.AST Methods showsPrec :: Int -> OrderedListAttributes -> ShowS show :: OrderedListAttributes -> String showList :: [OrderedListAttributes] -> ShowS | |||||
Eq OrderedListAttributes Source # | |||||
Defined in Djot.AST Methods (==) :: OrderedListAttributes -> OrderedListAttributes -> Bool (/=) :: OrderedListAttributes -> OrderedListAttributes -> Bool | |||||
Ord OrderedListAttributes Source # | |||||
Defined in Djot.AST Methods compare :: OrderedListAttributes -> OrderedListAttributes -> Ordering (<) :: OrderedListAttributes -> OrderedListAttributes -> Bool (<=) :: OrderedListAttributes -> OrderedListAttributes -> Bool (>) :: OrderedListAttributes -> OrderedListAttributes -> Bool (>=) :: OrderedListAttributes -> OrderedListAttributes -> Bool max :: OrderedListAttributes -> OrderedListAttributes -> OrderedListAttributes min :: OrderedListAttributes -> OrderedListAttributes -> OrderedListAttributes | |||||
Lift OrderedListAttributes Source # | |||||
Defined in Djot.AST Methods lift :: Quote m => OrderedListAttributes -> m Exp liftTyped :: forall (m :: Type -> Type). Quote m => OrderedListAttributes -> Code m OrderedListAttributes | |||||
type Rep OrderedListAttributes Source # | |||||
Defined in Djot.AST type Rep OrderedListAttributes = D1 ('MetaData "OrderedListAttributes" "Djot.AST" "djot-0.1.2.2-15gr36Ga7owLkYfuhIJqAO" 'False) (C1 ('MetaCons "OrderedListAttributes" 'PrefixI 'True) (S1 ('MetaSel ('Just "orderedListStyle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 OrderedListStyle) :*: (S1 ('MetaSel ('Just "orderedListDelim") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 OrderedListDelim) :*: S1 ('MetaSel ('Just "orderedListStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))) |
data OrderedListDelim Source #
Constructors
RightPeriod | |
RightParen | |
LeftRightParen |
Instances
Data OrderedListDelim Source # | |||||
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> OrderedListDelim -> c OrderedListDelim gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c OrderedListDelim toConstr :: OrderedListDelim -> Constr dataTypeOf :: OrderedListDelim -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c OrderedListDelim) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c OrderedListDelim) gmapT :: (forall b. Data b => b -> b) -> OrderedListDelim -> OrderedListDelim gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> OrderedListDelim -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> OrderedListDelim -> r gmapQ :: (forall d. Data d => d -> u) -> OrderedListDelim -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> OrderedListDelim -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> OrderedListDelim -> m OrderedListDelim gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> OrderedListDelim -> m OrderedListDelim gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> OrderedListDelim -> m OrderedListDelim | |||||
Generic OrderedListDelim Source # | |||||
Defined in Djot.AST Associated Types
Methods from :: OrderedListDelim -> Rep OrderedListDelim x to :: Rep OrderedListDelim x -> OrderedListDelim | |||||
Show OrderedListDelim Source # | |||||
Defined in Djot.AST Methods showsPrec :: Int -> OrderedListDelim -> ShowS show :: OrderedListDelim -> String showList :: [OrderedListDelim] -> ShowS | |||||
Eq OrderedListDelim Source # | |||||
Defined in Djot.AST Methods (==) :: OrderedListDelim -> OrderedListDelim -> Bool (/=) :: OrderedListDelim -> OrderedListDelim -> Bool | |||||
Ord OrderedListDelim Source # | |||||
Defined in Djot.AST Methods compare :: OrderedListDelim -> OrderedListDelim -> Ordering (<) :: OrderedListDelim -> OrderedListDelim -> Bool (<=) :: OrderedListDelim -> OrderedListDelim -> Bool (>) :: OrderedListDelim -> OrderedListDelim -> Bool (>=) :: OrderedListDelim -> OrderedListDelim -> Bool max :: OrderedListDelim -> OrderedListDelim -> OrderedListDelim min :: OrderedListDelim -> OrderedListDelim -> OrderedListDelim | |||||
Lift OrderedListDelim Source # | |||||
Defined in Djot.AST Methods lift :: Quote m => OrderedListDelim -> m Exp liftTyped :: forall (m :: Type -> Type). Quote m => OrderedListDelim -> Code m OrderedListDelim | |||||
type Rep OrderedListDelim Source # | |||||
Defined in Djot.AST type Rep OrderedListDelim = D1 ('MetaData "OrderedListDelim" "Djot.AST" "djot-0.1.2.2-15gr36Ga7owLkYfuhIJqAO" 'False) (C1 ('MetaCons "RightPeriod" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "RightParen" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LeftRightParen" 'PrefixI 'False) (U1 :: Type -> Type))) |
data OrderedListStyle Source #
Constructors
Decimal | |
LetterUpper | |
LetterLower | |
RomanUpper | |
RomanLower |
Instances
Data OrderedListStyle Source # | |||||
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> OrderedListStyle -> c OrderedListStyle gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c OrderedListStyle toConstr :: OrderedListStyle -> Constr dataTypeOf :: OrderedListStyle -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c OrderedListStyle) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c OrderedListStyle) gmapT :: (forall b. Data b => b -> b) -> OrderedListStyle -> OrderedListStyle gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> OrderedListStyle -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> OrderedListStyle -> r gmapQ :: (forall d. Data d => d -> u) -> OrderedListStyle -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> OrderedListStyle -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> OrderedListStyle -> m OrderedListStyle gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> OrderedListStyle -> m OrderedListStyle gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> OrderedListStyle -> m OrderedListStyle | |||||
Generic OrderedListStyle Source # | |||||
Defined in Djot.AST Associated Types
Methods from :: OrderedListStyle -> Rep OrderedListStyle x to :: Rep OrderedListStyle x -> OrderedListStyle | |||||
Show OrderedListStyle Source # | |||||
Defined in Djot.AST Methods showsPrec :: Int -> OrderedListStyle -> ShowS show :: OrderedListStyle -> String showList :: [OrderedListStyle] -> ShowS | |||||
Eq OrderedListStyle Source # | |||||
Defined in Djot.AST Methods (==) :: OrderedListStyle -> OrderedListStyle -> Bool (/=) :: OrderedListStyle -> OrderedListStyle -> Bool | |||||
Ord OrderedListStyle Source # | |||||
Defined in Djot.AST Methods compare :: OrderedListStyle -> OrderedListStyle -> Ordering (<) :: OrderedListStyle -> OrderedListStyle -> Bool (<=) :: OrderedListStyle -> OrderedListStyle -> Bool (>) :: OrderedListStyle -> OrderedListStyle -> Bool (>=) :: OrderedListStyle -> OrderedListStyle -> Bool max :: OrderedListStyle -> OrderedListStyle -> OrderedListStyle min :: OrderedListStyle -> OrderedListStyle -> OrderedListStyle | |||||
Lift OrderedListStyle Source # | |||||
Defined in Djot.AST Methods lift :: Quote m => OrderedListStyle -> m Exp liftTyped :: forall (m :: Type -> Type). Quote m => OrderedListStyle -> Code m OrderedListStyle | |||||
type Rep OrderedListStyle Source # | |||||
Defined in Djot.AST type Rep OrderedListStyle = D1 ('MetaData "OrderedListStyle" "Djot.AST" "djot-0.1.2.2-15gr36Ga7owLkYfuhIJqAO" 'False) ((C1 ('MetaCons "Decimal" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LetterUpper" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LetterLower" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "RomanUpper" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RomanLower" 'PrefixI 'False) (U1 :: Type -> Type)))) |
Constructors
SingleQuotes | |
DoubleQuotes |
Instances
Data QuoteType Source # | |
Defined in Djot.AST Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> QuoteType -> c QuoteType gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c QuoteType toConstr :: QuoteType -> Constr dataTypeOf :: QuoteType -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c QuoteType) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c QuoteType) gmapT :: (forall b. Data b => b -> b) -> QuoteType -> QuoteType gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> QuoteType -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> QuoteType -> r gmapQ :: (forall d. Data d => d -> u) -> QuoteType -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> QuoteType -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> QuoteType -> m QuoteType gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> QuoteType -> m QuoteType gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> QuoteType -> m QuoteType | |
Generic QuoteType Source # | |
Show QuoteType Source # | |
Eq QuoteType Source # | |
Ord QuoteType Source # | |
Defined in Djot.AST | |
Lift QuoteType Source # | |
type Rep QuoteType Source # | |
displayMath :: ByteString -> Inlines Source #
footnoteReference :: ByteString -> Inlines Source #
inlineMath :: ByteString -> Inlines Source #
superscript :: Inlines -> Inlines Source #
singleQuoted :: Inlines -> Inlines Source #
doubleQuoted :: Inlines -> Inlines Source #
blockQuote :: Blocks -> Blocks Source #
bulletList :: ListSpacing -> [Blocks] -> Blocks Source #
orderedList :: OrderedListAttributes -> ListSpacing -> [Blocks] -> Blocks Source #
definitionList :: ListSpacing -> [(Inlines, Blocks)] -> Blocks Source #
taskList :: ListSpacing -> [(TaskStatus, Blocks)] -> Blocks Source #
inlinesToByteString :: Inlines -> ByteString Source #