Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class CanBePlain x where
- class CanFork x where
- class HasManyPlainBlocks x where
- allPlainBlocks :: Traversal' x (Tagged (PlainBlock (Annotation x)))
- class HasManyPlainInlines x where
- allPlainInlines :: Traversal' x (Fragment (Annotation x))
- class HasAnnotation x x' where
- annotation :: Lens x x' (Annotation x) (Annotation x')
- type HasAnnotation' x = HasAnnotation x x
- class HasManyAnnotations x x' where
- allAnnotations :: Traversal x x' (Annotation x) (Annotation x')
- class HasContent x x' where
- type HasContent' x = HasContent x x
- class HasContents x x' where
- type HasContents' x = HasContents x x
- class HasMetadata x where
- type MetadataOpticKind x
- metadata :: Optic' (MetadataOpticKind x) NoIx x Metadata
- class HasManyMetadata x where
- class HasTag x where
- type TagOpticKind x :: OpticKind
- tag :: Optic' (TagOpticKind x) NoIx x (Tag (Annotation x))
- class HasManyTags x where
- allTags :: Traversal' x (Tag (Annotation x))
- allInlineTags :: Traversal' x (Tag (Annotation x))
- class HasManyTags x => HasManyBlockTags x where
- allBlockTags :: Traversal' x (Tag (Annotation x))
- class HasWitherableTags x where
- witherTags :: Monad f => (Tag (Annotation x) -> f (Maybe (Tag (Annotation x)))) -> x -> f x
- mapMaybeTags :: (Tag (Annotation x) -> Maybe (Tag (Annotation x))) -> x -> x
- class HasManyTags x => HasWitherableInlineTags x where
- witherInlineTags :: Monad f => (Tag (Annotation x) -> f (Maybe (Tag (Annotation x)))) -> x -> f x
- mapMaybeInlineTags :: (Tag (Annotation x) -> Maybe (Tag (Annotation x))) -> x -> x
- class HasManyBlockTags x => HasWitherableBlockTags x where
- witherBlockTags :: Monad f => (Tag (Annotation x) -> f (Maybe (Tag (Annotation x)))) -> x -> f x
- mapMaybeBlockTags :: (Tag (Annotation x) -> Maybe (Tag (Annotation x))) -> x -> x
- class HasManyParagraphs x where
- allParagraphs :: Traversal' x (Paragraph (Annotation x))
- class CanBeTagless a where
- tagless :: KindOfText txt -> AffineFold a txt
- class CanHaveTaglessContent a where
- taglessContent :: KindOfText t -> AffineFold a t
- data KindOfText txt where
- TextLine :: KindOfText Text
- TextStanza :: KindOfText (Seq Text)
- TextParagraphs :: KindOfText (Seq (Seq Text))
Block and inline prisms
class CanBePlain x where Source #
Instances
CanBePlain (Inline ann) Source # | |
CanBePlain (Block ann) Source # | |
CanBePlain (BlockTag ann) Source # | |
Plaintext traversals
class HasManyPlainBlocks x where Source #
allPlainBlocks :: Traversal' x (Tagged (PlainBlock (Annotation x))) Source #
Instances
HasManyPlainBlocks (Tagged (Blocks ann)) Source # | |
Defined in ProAbstract.Structure.Block allPlainBlocks :: Traversal' (Tagged (Blocks ann)) (Tagged (PlainBlock (Annotation (Tagged (Blocks ann))))) Source # | |
HasManyPlainBlocks (Blocks ann) Source # | |
Defined in ProAbstract.Structure.Block allPlainBlocks :: Traversal' (Blocks ann) (Tagged (PlainBlock (Annotation (Blocks ann)))) Source # | |
HasManyPlainBlocks (Block ann) Source # | |
Defined in ProAbstract.Structure.Block allPlainBlocks :: Traversal' (Block ann) (Tagged (PlainBlock (Annotation (Block ann)))) Source # | |
HasManyPlainBlocks (Document ann) Source # | |
Defined in ProAbstract.Structure.Document allPlainBlocks :: Traversal' (Document ann) (Tagged (PlainBlock (Annotation (Document ann)))) Source # | |
HasManyPlainBlocks (BlockTag ann) Source # | |
Defined in ProAbstract.Structure.BlockTag allPlainBlocks :: Traversal' (BlockTag ann) (Tagged (PlainBlock (Annotation (BlockTag ann)))) Source # |
class HasManyPlainInlines x where Source #
allPlainInlines :: Traversal' x (Fragment (Annotation x)) Source #
Instances
Annotation
class HasAnnotation x x' where Source #
annotation :: Lens x x' (Annotation x) (Annotation x') Source #
Instances
type HasAnnotation' x = HasAnnotation x x Source #
class HasManyAnnotations x x' where Source #
allAnnotations :: Traversal x x' (Annotation x) (Annotation x') Source #
Instances
Content
class HasContent x x' where Source #
Instances
HasContent (Fragment ann) (Fragment ann) Source # | |
HasContent (Tagged (PlainBlock ann)) (Tagged (PlainBlock ann)) Source # | |
Defined in ProAbstract.Structure.PlainBlock content :: Lens (Tagged (PlainBlock ann)) (Tagged (PlainBlock ann)) (Content (Tagged (PlainBlock ann))) (Content (Tagged (PlainBlock ann))) Source # | |
HasContent (Tagged (Lines ann)) (Tagged (Lines ann)) Source # | |
HasContent (Tagged (Blocks ann)) (Tagged (Blocks ann)) Source # | |
HasContent (Paragraph ann) (Paragraph ann) Source # | |
HasContent (Document ann) (Document ann') Source # | |
type HasContent' x = HasContent x x Source #
class HasContents x x' where Source #
Instances
HasContents (Tagged (PlainBlock ann)) (Tagged (PlainBlock ann)) Source # | |
Defined in ProAbstract.Structure.PlainBlock contents :: Lens (Tagged (PlainBlock ann)) (Tagged (PlainBlock ann)) (Seq (Contents (Tagged (PlainBlock ann)))) (Seq (Contents (Tagged (PlainBlock ann)))) Source # | |
HasContents (Tagged (Lines ann)) (Tagged (Lines ann)) Source # | |
HasContents (Tagged (Blocks ann)) (Tagged (Blocks ann)) Source # | |
HasContents (PlainBlock ann) (PlainBlock ann) Source # | |
Defined in ProAbstract.Structure.PlainBlock contents :: Lens (PlainBlock ann) (PlainBlock ann) (Seq (Contents (PlainBlock ann))) (Seq (Contents (PlainBlock ann))) Source # | |
HasContents (Lines ann) (Lines ann') Source # | |
HasContents (Line ann) (Line ann) Source # | |
HasContents (Paragraph ann) (Paragraph ann) Source # | |
HasContents (Blocks ann) (Blocks ann') Source # | |
HasContents (Document ann) (Document ann') Source # | |
type HasContents' x = HasContents x x Source #
Metadata
class HasMetadata x where Source #
type MetadataOpticKind x Source #
Instances
class HasManyMetadata x where Source #
allMetadata :: Traversal' x Metadata Source #
Instances
Tags
type TagOpticKind x :: OpticKind Source #
tag :: Optic' (TagOpticKind x) NoIx x (Tag (Annotation x)) Source #
Instances
HasTag (Tag ann) Source # | |
Defined in ProAbstract.Tag.HasTag type TagOpticKind (Tag ann) Source # | |
HasTag (Tagged (PlainBlock ann)) Source # | |
Defined in ProAbstract.Structure.PlainBlock type TagOpticKind (Tagged (PlainBlock ann)) Source # tag :: Optic' (TagOpticKind (Tagged (PlainBlock ann))) NoIx (Tagged (PlainBlock ann)) (Tag (Annotation (Tagged (PlainBlock ann)))) Source # | |
HasTag (Tagged (Lines ann)) Source # | |
Defined in ProAbstract.Structure.Inline type TagOpticKind (Tagged (Lines ann)) Source # | |
HasTag (Tagged (Blocks ann)) Source # | |
Defined in ProAbstract.Structure.Block type TagOpticKind (Tagged (Blocks ann)) Source # | |
HasTag (Inline ann) Source # | |
Defined in ProAbstract.Structure.Inline type TagOpticKind (Inline ann) Source # | |
HasTag (Block ann) Source # | |
Defined in ProAbstract.Structure.Block type TagOpticKind (Block ann) Source # | |
HasTag (BlockTag ann) Source # | |
Defined in ProAbstract.Structure.BlockTag type TagOpticKind (BlockTag ann) Source # |
Traversal
class HasManyTags x where Source #
allTags :: Traversal' x (Tag (Annotation x)) Source #
allInlineTags :: Traversal' x (Tag (Annotation x)) Source #
Instances
class HasManyTags x => HasManyBlockTags x where Source #
allBlockTags :: Traversal' x (Tag (Annotation x)) Source #
Instances
HasManyBlockTags (Tagged (Blocks ann)) Source # | |
Defined in ProAbstract.Structure.Block allBlockTags :: Traversal' (Tagged (Blocks ann)) (Tag (Annotation (Tagged (Blocks ann)))) Source # | |
HasManyBlockTags (Blocks ann) Source # | |
Defined in ProAbstract.Structure.Block allBlockTags :: Traversal' (Blocks ann) (Tag (Annotation (Blocks ann))) Source # | |
HasManyBlockTags (Block ann) Source # | |
Defined in ProAbstract.Structure.Block allBlockTags :: Traversal' (Block ann) (Tag (Annotation (Block ann))) Source # | |
HasManyBlockTags (Document ann) Source # | |
Defined in ProAbstract.Structure.Document allBlockTags :: Traversal' (Document ann) (Tag (Annotation (Document ann))) Source # |
Withering
class HasWitherableTags x where Source #
witherTags :: Monad f => (Tag (Annotation x) -> f (Maybe (Tag (Annotation x)))) -> x -> f x Source #
mapMaybeTags :: (Tag (Annotation x) -> Maybe (Tag (Annotation x))) -> x -> x Source #
Instances
class HasManyTags x => HasWitherableInlineTags x where Source #
witherInlineTags :: Monad f => (Tag (Annotation x) -> f (Maybe (Tag (Annotation x)))) -> x -> f x Source #
mapMaybeInlineTags :: (Tag (Annotation x) -> Maybe (Tag (Annotation x))) -> x -> x Source #
Instances
class HasManyBlockTags x => HasWitherableBlockTags x where Source #
witherBlockTags :: Monad f => (Tag (Annotation x) -> f (Maybe (Tag (Annotation x)))) -> x -> f x Source #
mapMaybeBlockTags :: (Tag (Annotation x) -> Maybe (Tag (Annotation x))) -> x -> x Source #
Instances
HasWitherableBlockTags (Blocks ann) Source # | |
Defined in ProAbstract.Structure.Block witherBlockTags :: Monad f => (Tag (Annotation (Blocks ann)) -> f (Maybe (Tag (Annotation (Blocks ann))))) -> Blocks ann -> f (Blocks ann) Source # mapMaybeBlockTags :: (Tag (Annotation (Blocks ann)) -> Maybe (Tag (Annotation (Blocks ann)))) -> Blocks ann -> Blocks ann Source # | |
HasWitherableBlockTags (Document ann) Source # | |
Defined in ProAbstract.Structure.Document witherBlockTags :: Monad f => (Tag (Annotation (Document ann)) -> f (Maybe (Tag (Annotation (Document ann))))) -> Document ann -> f (Document ann) Source # mapMaybeBlockTags :: (Tag (Annotation (Document ann)) -> Maybe (Tag (Annotation (Document ann)))) -> Document ann -> Document ann Source # |
Paragraphs
class HasManyParagraphs x where Source #
allParagraphs :: Traversal' x (Paragraph (Annotation x)) Source #
Instances
HasManyParagraphs (Tagged (Blocks ann)) Source # | |
Defined in ProAbstract.Structure.Block allParagraphs :: Traversal' (Tagged (Blocks ann)) (Paragraph (Annotation (Tagged (Blocks ann)))) Source # | |
HasManyParagraphs (Blocks ann) Source # | |
Defined in ProAbstract.Structure.Block allParagraphs :: Traversal' (Blocks ann) (Paragraph (Annotation (Blocks ann))) Source # | |
HasManyParagraphs (Block ann) Source # | |
Defined in ProAbstract.Structure.Block allParagraphs :: Traversal' (Block ann) (Paragraph (Annotation (Block ann))) Source # | |
HasManyParagraphs (Document ann) Source # | |
Defined in ProAbstract.Structure.Document allParagraphs :: Traversal' (Document ann) (Paragraph (Annotation (Document ann))) Source # | |
HasManyParagraphs (BlockTag ann) Source # | |
Defined in ProAbstract.Structure.BlockTag allParagraphs :: Traversal' (BlockTag ann) (Paragraph (Annotation (BlockTag ann))) Source # |
Getting text from tagless content
class CanBeTagless a where Source #
tagless :: KindOfText txt -> AffineFold a txt Source #
Instances
class CanHaveTaglessContent a where Source #
taglessContent :: KindOfText t -> AffineFold a t Source #
Instances
data KindOfText txt where Source #
TextLine :: KindOfText Text | |
TextStanza :: KindOfText (Seq Text) | |
TextParagraphs :: KindOfText (Seq (Seq Text)) |