asciidoc-0.1.0.3: AsciiDoc parser.

Safe Haskell | None
Language | Haskell2010

AsciiDoc.Generic

# Documentation

class HasInlines a where Source #

Minimal complete definition

Nothing

Methods

foldInlines :: Monoid m => (Inline -> m) -> a -> m Source #

default foldInlines :: (Generic a, GHasInlines (Rep a), Monoid m) => (Inline -> m) -> a -> m Source #

mapInlines :: Monad m => (Inline -> m Inline) -> a -> m a Source #

default mapInlines :: (Generic a, GHasInlines (Rep a), Monad m) => (Inline -> m Inline) -> a -> m a Source #

#### Instances

Instances details

HasInlines Author Source # |
Instance details Defined in AsciiDoc.Generic Methods foldInlines :: Monoid m => (Inline -> m) -> Author -> m Source # mapInlines :: Monad m => (Inline -> m Inline) -> Author -> m Author Source #
HasInlines Block Source # |
Instance details Defined in AsciiDoc.Generic Methods foldInlines :: Monoid m => (Inline -> m) -> Block -> m Source # mapInlines :: Monad m => (Inline -> m Inline) -> Block -> m Block Source #
HasInlines BlockTitle Source # |
Instance details Defined in AsciiDoc.Generic Methods foldInlines :: Monoid m => (Inline -> m) -> BlockTitle -> m Source # mapInlines :: Monad m => (Inline -> m Inline) -> BlockTitle -> m BlockTitle Source #
HasInlines BlockType Source # |
Instance details Defined in AsciiDoc.Generic Methods foldInlines :: Monoid m => (Inline -> m) -> BlockType -> m Source # mapInlines :: Monad m => (Inline -> m Inline) -> BlockType -> m BlockType Source #
HasInlines Document Source # |
Instance details Defined in AsciiDoc.Generic Methods foldInlines :: Monoid m => (Inline -> m) -> Document -> m Source # mapInlines :: Monad m => (Inline -> m Inline) -> Document -> m Document Source #
HasInlines Inline Source # |
Instance details Defined in AsciiDoc.Generic Methods foldInlines :: Monoid m => (Inline -> m) -> Inline -> m Source # mapInlines :: Monad m => (Inline -> m Inline) -> Inline -> m Inline Source #
HasInlines InlineType Source # |
Instance details Defined in AsciiDoc.Generic Methods foldInlines :: Monoid m => (Inline -> m) -> InlineType -> m Source # mapInlines :: Monad m => (Inline -> m Inline) -> InlineType -> m InlineType Source #
HasInlines ListItem Source # |
Instance details Defined in AsciiDoc.Generic Methods foldInlines :: Monoid m => (Inline -> m) -> ListItem -> m Source # mapInlines :: Monad m => (Inline -> m Inline) -> ListItem -> m ListItem Source #
HasInlines Meta Source # |
Instance details Defined in AsciiDoc.Generic Methods foldInlines :: Monoid m => (Inline -> m) -> Meta -> m Source # mapInlines :: Monad m => (Inline -> m Inline) -> Meta -> m Meta Source #
HasInlines TableCell Source # |
Instance details Defined in AsciiDoc.Generic Methods foldInlines :: Monoid m => (Inline -> m) -> TableCell -> m Source # mapInlines :: Monad m => (Inline -> m Inline) -> TableCell -> m TableCell Source #
HasInlines TableRow Source # |
Instance details Defined in AsciiDoc.Generic Methods foldInlines :: Monoid m => (Inline -> m) -> TableRow -> m Source # mapInlines :: Monad m => (Inline -> m Inline) -> TableRow -> m TableRow Source #
HasInlines a Source # |
Instance details Defined in AsciiDoc.Generic Methods foldInlines :: Monoid m => (Inline -> m) -> a -> m Source # mapInlines :: Monad m => (Inline -> m Inline) -> a -> m a Source #
(HasInlines a, Traversable t, Foldable t) => HasInlines (t a) Source # |
Instance details Defined in AsciiDoc.Generic Methods foldInlines :: Monoid m => (Inline -> m) -> t a -> m Source # mapInlines :: Monad m => (Inline -> m Inline) -> t a -> m (t a) Source #

class HasBlocks a where Source #

Minimal complete definition

Nothing

Methods

foldBlocks :: Monoid m => (Block -> m) -> a -> m Source #

default foldBlocks :: (Generic a, GHasBlocks (Rep a), Monoid m) => (Block -> m) -> a -> m Source #

mapBlocks :: Monad m => (Block -> m Block) -> a -> m a Source #

default mapBlocks :: (Generic a, GHasBlocks (Rep a), Monad m) => (Block -> m Block) -> a -> m a Source #

#### Instances

Instances details

HasBlocks Block Source # |
Instance details Defined in AsciiDoc.Generic Methods foldBlocks :: Monoid m => (Block -> m) -> Block -> m Source # mapBlocks :: Monad m => (Block -> m Block) -> Block -> m Block Source #
HasBlocks BlockType Source # |
Instance details Defined in AsciiDoc.Generic Methods foldBlocks :: Monoid m => (Block -> m) -> BlockType -> m Source # mapBlocks :: Monad m => (Block -> m Block) -> BlockType -> m BlockType Source #
HasBlocks Document Source # |
Instance details Defined in AsciiDoc.Generic Methods foldBlocks :: Monoid m => (Block -> m) -> Document -> m Source # mapBlocks :: Monad m => (Block -> m Block) -> Document -> m Document Source #
HasBlocks Inline Source # |
Instance details Defined in AsciiDoc.Generic Methods foldBlocks :: Monoid m => (Block -> m) -> Inline -> m Source # mapBlocks :: Monad m => (Block -> m Block) -> Inline -> m Inline Source #
HasBlocks InlineType Source # |
Instance details Defined in AsciiDoc.Generic Methods foldBlocks :: Monoid m => (Block -> m) -> InlineType -> m Source # mapBlocks :: Monad m => (Block -> m Block) -> InlineType -> m InlineType Source #
HasBlocks ListItem Source # |
Instance details Defined in AsciiDoc.Generic Methods foldBlocks :: Monoid m => (Block -> m) -> ListItem -> m Source # mapBlocks :: Monad m => (Block -> m Block) -> ListItem -> m ListItem Source #
HasBlocks Meta Source # |
Instance details Defined in AsciiDoc.Generic Methods foldBlocks :: Monoid m => (Block -> m) -> Meta -> m Source # mapBlocks :: Monad m => (Block -> m Block) -> Meta -> m Meta Source #
HasBlocks TableCell Source # |
Instance details Defined in AsciiDoc.Generic Methods foldBlocks :: Monoid m => (Block -> m) -> TableCell -> m Source # mapBlocks :: Monad m => (Block -> m Block) -> TableCell -> m TableCell Source #
HasBlocks TableRow Source # |
Instance details Defined in AsciiDoc.Generic Methods foldBlocks :: Monoid m => (Block -> m) -> TableRow -> m Source # mapBlocks :: Monad m => (Block -> m Block) -> TableRow -> m TableRow Source #
HasBlocks a Source # |
Instance details Defined in AsciiDoc.Generic Methods foldBlocks :: Monoid m => (Block -> m) -> a -> m Source # mapBlocks :: Monad m => (Block -> m Block) -> a -> m a Source #
(HasBlocks a, Traversable t, Foldable t) => HasBlocks (t a) Source # |
Instance details Defined in AsciiDoc.Generic Methods foldBlocks :: Monoid m => (Block -> m) -> t a -> m Source # mapBlocks :: Monad m => (Block -> m Block) -> t a -> m (t a) Source #