pandoc-types-1.20: Types for representing a structured document
CopyrightCopyright (C) 2006-2019 John MacFarlane
LicenseBSD3
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Text.Pandoc.Definition

Description

Definition of Pandoc data structure for format-neutral representation of documents.

Synopsis

Documentation

data Pandoc #

Constructors

Pandoc Meta [Block] 

Instances

Instances details
Eq Pandoc # 
Instance details

Defined in Text.Pandoc.Definition

Methods

(==) :: Pandoc -> Pandoc -> Bool

(/=) :: Pandoc -> Pandoc -> Bool

Data Pandoc # 
Instance details

Defined in Text.Pandoc.Definition

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Pandoc -> c Pandoc

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Pandoc

toConstr :: Pandoc -> Constr

dataTypeOf :: Pandoc -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Pandoc)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Pandoc)

gmapT :: (forall b. Data b => b -> b) -> Pandoc -> Pandoc

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Pandoc -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Pandoc -> r

gmapQ :: (forall d. Data d => d -> u) -> Pandoc -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Pandoc -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Pandoc -> m Pandoc

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Pandoc -> m Pandoc

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Pandoc -> m Pandoc

Ord Pandoc # 
Instance details

Defined in Text.Pandoc.Definition

Methods

compare :: Pandoc -> Pandoc -> Ordering

(<) :: Pandoc -> Pandoc -> Bool

(<=) :: Pandoc -> Pandoc -> Bool

(>) :: Pandoc -> Pandoc -> Bool

(>=) :: Pandoc -> Pandoc -> Bool

max :: Pandoc -> Pandoc -> Pandoc

min :: Pandoc -> Pandoc -> Pandoc

Read Pandoc # 
Instance details

Defined in Text.Pandoc.Definition

Methods

readsPrec :: Int -> ReadS Pandoc #

readList :: ReadS [Pandoc] #

readPrec :: ReadPrec Pandoc #

readListPrec :: ReadPrec [Pandoc] #

Show Pandoc # 
Instance details

Defined in Text.Pandoc.Definition

Methods

showsPrec :: Int -> Pandoc -> ShowS

show :: Pandoc -> String

showList :: [Pandoc] -> ShowS

Generic Pandoc # 
Instance details

Defined in Text.Pandoc.Definition

Associated Types

type Rep Pandoc :: Type -> Type

Methods

from :: Pandoc -> Rep Pandoc x

to :: Rep Pandoc x -> Pandoc

Semigroup Pandoc # 
Instance details

Defined in Text.Pandoc.Definition

Methods

(<>) :: Pandoc -> Pandoc -> Pandoc #

sconcat :: NonEmpty Pandoc -> Pandoc #

stimes :: Integral b => b -> Pandoc -> Pandoc #

Monoid Pandoc # 
Instance details

Defined in Text.Pandoc.Definition

Arbitrary Pandoc # 
Instance details

Defined in Text.Pandoc.Arbitrary

FromJSON Pandoc # 
Instance details

Defined in Text.Pandoc.Definition

Methods

parseJSON :: Value -> Parser Pandoc

parseJSONList :: Value -> Parser [Pandoc]

ToJSON Pandoc # 
Instance details

Defined in Text.Pandoc.Definition

Methods

toJSON :: Pandoc -> Value

toEncoding :: Pandoc -> Encoding

toJSONList :: [Pandoc] -> Value

toEncodingList :: [Pandoc] -> Encoding

NFData Pandoc # 
Instance details

Defined in Text.Pandoc.Definition

Methods

rnf :: Pandoc -> ()

HasMeta Pandoc # 
Instance details

Defined in Text.Pandoc.Builder

Methods

setMeta :: ToMetaValue b => Text -> b -> Pandoc -> Pandoc #

deleteMeta :: Text -> Pandoc -> Pandoc #

HasMeta Pandoc # 
Instance details

Defined in Text.Pandoc.Legacy.Builder

Methods

setMeta :: ToMetaValue b => String -> b -> Pandoc -> Pandoc #

deleteMeta :: String -> Pandoc -> Pandoc #

Walkable Inline Pandoc # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Inline -> Inline) -> Pandoc -> Pandoc #

walkM :: (Monad m, Applicative m, Functor m) => (Inline -> m Inline) -> Pandoc -> m Pandoc #

query :: Monoid c => (Inline -> c) -> Pandoc -> c #

Walkable Block Pandoc # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Block -> Block) -> Pandoc -> Pandoc #

walkM :: (Monad m, Applicative m, Functor m) => (Block -> m Block) -> Pandoc -> m Pandoc #

query :: Monoid c => (Block -> c) -> Pandoc -> c #

Walkable Pandoc Pandoc # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Pandoc -> Pandoc) -> Pandoc -> Pandoc #

walkM :: (Monad m, Applicative m, Functor m) => (Pandoc -> m Pandoc) -> Pandoc -> m Pandoc #

query :: Monoid c => (Pandoc -> c) -> Pandoc -> c #

Walkable [Inline] Pandoc # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Inline] -> [Inline]) -> Pandoc -> Pandoc #

walkM :: (Monad m, Applicative m, Functor m) => ([Inline] -> m [Inline]) -> Pandoc -> m Pandoc #

query :: Monoid c => ([Inline] -> c) -> Pandoc -> c #

Walkable [Block] Pandoc # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Block] -> [Block]) -> Pandoc -> Pandoc #

walkM :: (Monad m, Applicative m, Functor m) => ([Block] -> m [Block]) -> Pandoc -> m Pandoc #

query :: Monoid c => ([Block] -> c) -> Pandoc -> c #

type Rep Pandoc # 
Instance details

Defined in Text.Pandoc.Definition

type Rep Pandoc = D1 ('MetaData "Pandoc" "Text.Pandoc.Definition" "pandoc-types-1.20-sToD4GOnC9Li1cr6PAiTH" 'False) (C1 ('MetaCons "Pandoc" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Meta) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Block])))

newtype Meta #

Metadata for the document: title, authors, date.

Constructors

Meta 

Fields

Instances

Instances details
Eq Meta # 
Instance details

Defined in Text.Pandoc.Definition

Methods

(==) :: Meta -> Meta -> Bool

(/=) :: Meta -> Meta -> Bool

Data Meta # 
Instance details

Defined in Text.Pandoc.Definition

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Meta -> c Meta

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Meta

toConstr :: Meta -> Constr

dataTypeOf :: Meta -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Meta)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Meta)

gmapT :: (forall b. Data b => b -> b) -> Meta -> Meta

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Meta -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Meta -> r

gmapQ :: (forall d. Data d => d -> u) -> Meta -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Meta -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Meta -> m Meta

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Meta -> m Meta

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Meta -> m Meta

Ord Meta # 
Instance details

Defined in Text.Pandoc.Definition

Methods

compare :: Meta -> Meta -> Ordering

(<) :: Meta -> Meta -> Bool

(<=) :: Meta -> Meta -> Bool

(>) :: Meta -> Meta -> Bool

(>=) :: Meta -> Meta -> Bool

max :: Meta -> Meta -> Meta

min :: Meta -> Meta -> Meta

Read Meta # 
Instance details

Defined in Text.Pandoc.Definition

Methods

readsPrec :: Int -> ReadS Meta #

readList :: ReadS [Meta] #

readPrec :: ReadPrec Meta #

readListPrec :: ReadPrec [Meta] #

Show Meta # 
Instance details

Defined in Text.Pandoc.Definition

Methods

showsPrec :: Int -> Meta -> ShowS

show :: Meta -> String

showList :: [Meta] -> ShowS

Generic Meta # 
Instance details

Defined in Text.Pandoc.Definition

Associated Types

type Rep Meta :: Type -> Type

Methods

from :: Meta -> Rep Meta x

to :: Rep Meta x -> Meta

Semigroup Meta # 
Instance details

Defined in Text.Pandoc.Definition

Methods

(<>) :: Meta -> Meta -> Meta #

sconcat :: NonEmpty Meta -> Meta #

stimes :: Integral b => b -> Meta -> Meta #

Monoid Meta # 
Instance details

Defined in Text.Pandoc.Definition

Methods

mempty :: Meta #

mappend :: Meta -> Meta -> Meta #

mconcat :: [Meta] -> Meta #

Arbitrary Meta # 
Instance details

Defined in Text.Pandoc.Arbitrary

Methods

arbitrary :: Gen Meta #

shrink :: Meta -> [Meta] #

FromJSON Meta # 
Instance details

Defined in Text.Pandoc.Definition

Methods

parseJSON :: Value -> Parser Meta

parseJSONList :: Value -> Parser [Meta]

ToJSON Meta # 
Instance details

Defined in Text.Pandoc.Definition

Methods

toJSON :: Meta -> Value

toEncoding :: Meta -> Encoding

toJSONList :: [Meta] -> Value

toEncodingList :: [Meta] -> Encoding

NFData Meta # 
Instance details

Defined in Text.Pandoc.Definition

Methods

rnf :: Meta -> ()

HasMeta Meta # 
Instance details

Defined in Text.Pandoc.Builder

Methods

setMeta :: ToMetaValue b => Text -> b -> Meta -> Meta #

deleteMeta :: Text -> Meta -> Meta #

HasMeta Meta # 
Instance details

Defined in Text.Pandoc.Legacy.Builder

Methods

setMeta :: ToMetaValue b => String -> b -> Meta -> Meta #

deleteMeta :: String -> Meta -> Meta #

Walkable Inline Meta # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Inline -> Inline) -> Meta -> Meta #

walkM :: (Monad m, Applicative m, Functor m) => (Inline -> m Inline) -> Meta -> m Meta #

query :: Monoid c => (Inline -> c) -> Meta -> c #

Walkable Block Meta # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Block -> Block) -> Meta -> Meta #

walkM :: (Monad m, Applicative m, Functor m) => (Block -> m Block) -> Meta -> m Meta #

query :: Monoid c => (Block -> c) -> Meta -> c #

Walkable Meta Meta # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Meta -> Meta) -> Meta -> Meta #

walkM :: (Monad m, Applicative m, Functor m) => (Meta -> m Meta) -> Meta -> m Meta #

query :: Monoid c => (Meta -> c) -> Meta -> c #

Walkable [Inline] Meta # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Inline] -> [Inline]) -> Meta -> Meta #

walkM :: (Monad m, Applicative m, Functor m) => ([Inline] -> m [Inline]) -> Meta -> m Meta #

query :: Monoid c => ([Inline] -> c) -> Meta -> c #

Walkable [Block] Meta # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Block] -> [Block]) -> Meta -> Meta #

walkM :: (Monad m, Applicative m, Functor m) => ([Block] -> m [Block]) -> Meta -> m Meta #

query :: Monoid c => ([Block] -> c) -> Meta -> c #

type Rep Meta # 
Instance details

Defined in Text.Pandoc.Definition

type Rep Meta = D1 ('MetaData "Meta" "Text.Pandoc.Definition" "pandoc-types-1.20-sToD4GOnC9Li1cr6PAiTH" 'True) (C1 ('MetaCons "Meta" 'PrefixI 'True) (S1 ('MetaSel ('Just "unMeta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text MetaValue))))

data MetaValue #

Instances

Instances details
Eq MetaValue # 
Instance details

Defined in Text.Pandoc.Definition

Methods

(==) :: MetaValue -> MetaValue -> Bool

(/=) :: MetaValue -> MetaValue -> Bool

Data MetaValue # 
Instance details

Defined in Text.Pandoc.Definition

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MetaValue -> c MetaValue

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MetaValue

toConstr :: MetaValue -> Constr

dataTypeOf :: MetaValue -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MetaValue)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MetaValue)

gmapT :: (forall b. Data b => b -> b) -> MetaValue -> MetaValue

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MetaValue -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MetaValue -> r

gmapQ :: (forall d. Data d => d -> u) -> MetaValue -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> MetaValue -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MetaValue -> m MetaValue

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MetaValue -> m MetaValue

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MetaValue -> m MetaValue

Ord MetaValue # 
Instance details

Defined in Text.Pandoc.Definition

Methods

compare :: MetaValue -> MetaValue -> Ordering

(<) :: MetaValue -> MetaValue -> Bool

(<=) :: MetaValue -> MetaValue -> Bool

(>) :: MetaValue -> MetaValue -> Bool

(>=) :: MetaValue -> MetaValue -> Bool

max :: MetaValue -> MetaValue -> MetaValue

min :: MetaValue -> MetaValue -> MetaValue

Read MetaValue # 
Instance details

Defined in Text.Pandoc.Definition

Methods

readsPrec :: Int -> ReadS MetaValue #

readList :: ReadS [MetaValue] #

readPrec :: ReadPrec MetaValue #

readListPrec :: ReadPrec [MetaValue] #

Show MetaValue # 
Instance details

Defined in Text.Pandoc.Definition

Methods

showsPrec :: Int -> MetaValue -> ShowS

show :: MetaValue -> String

showList :: [MetaValue] -> ShowS

Generic MetaValue # 
Instance details

Defined in Text.Pandoc.Definition

Associated Types

type Rep MetaValue :: Type -> Type

Methods

from :: MetaValue -> Rep MetaValue x

to :: Rep MetaValue x -> MetaValue

FromJSON MetaValue # 
Instance details

Defined in Text.Pandoc.Definition

Methods

parseJSON :: Value -> Parser MetaValue

parseJSONList :: Value -> Parser [MetaValue]

ToJSON MetaValue # 
Instance details

Defined in Text.Pandoc.Definition

Methods

toJSON :: MetaValue -> Value

toEncoding :: MetaValue -> Encoding

toJSONList :: [MetaValue] -> Value

toEncodingList :: [MetaValue] -> Encoding

NFData MetaValue # 
Instance details

Defined in Text.Pandoc.Definition

Methods

rnf :: MetaValue -> ()

ToMetaValue MetaValue # 
Instance details

Defined in Text.Pandoc.Builder

ToMetaValue MetaValue # 
Instance details

Defined in Text.Pandoc.Legacy.Builder

Walkable Inline MetaValue # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Inline -> Inline) -> MetaValue -> MetaValue #

walkM :: (Monad m, Applicative m, Functor m) => (Inline -> m Inline) -> MetaValue -> m MetaValue #

query :: Monoid c => (Inline -> c) -> MetaValue -> c #

Walkable Block MetaValue # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Block -> Block) -> MetaValue -> MetaValue #

walkM :: (Monad m, Applicative m, Functor m) => (Block -> m Block) -> MetaValue -> m MetaValue #

query :: Monoid c => (Block -> c) -> MetaValue -> c #

Walkable [Inline] MetaValue # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Inline] -> [Inline]) -> MetaValue -> MetaValue #

walkM :: (Monad m, Applicative m, Functor m) => ([Inline] -> m [Inline]) -> MetaValue -> m MetaValue #

query :: Monoid c => ([Inline] -> c) -> MetaValue -> c #

Walkable [Block] MetaValue # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Block] -> [Block]) -> MetaValue -> MetaValue #

walkM :: (Monad m, Applicative m, Functor m) => ([Block] -> m [Block]) -> MetaValue -> m MetaValue #

query :: Monoid c => ([Block] -> c) -> MetaValue -> c #

type Rep MetaValue # 
Instance details

Defined in Text.Pandoc.Definition

type Rep MetaValue = D1 ('MetaData "MetaValue" "Text.Pandoc.Definition" "pandoc-types-1.20-sToD4GOnC9Li1cr6PAiTH" 'False) ((C1 ('MetaCons "MetaMap" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text MetaValue))) :+: (C1 ('MetaCons "MetaList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [MetaValue])) :+: C1 ('MetaCons "MetaBool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: (C1 ('MetaCons "MetaString" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: (C1 ('MetaCons "MetaInlines" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline])) :+: C1 ('MetaCons "MetaBlocks" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Block])))))

isNullMeta :: Meta -> Bool #

lookupMeta :: Text -> Meta -> Maybe MetaValue #

Retrieve the metadata value for a given key.

docTitle :: Meta -> [Inline] #

Extract document title from metadata; works just like the old docTitle.

docAuthors :: Meta -> [[Inline]] #

Extract document authors from metadata; works just like the old docAuthors.

docDate :: Meta -> [Inline] #

Extract date from metadata; works just like the old docDate.

data Block #

Block element.

Constructors

Plain [Inline]

Plain text, not a paragraph

Para [Inline]

Paragraph

LineBlock [[Inline]]

Multiple non-breaking lines

CodeBlock Attr Text

Code block (literal) with attributes

RawBlock Format Text

Raw block

BlockQuote [Block]

Block quote (list of blocks)

OrderedList ListAttributes [[Block]]

Ordered list (attributes and a list of items, each a list of blocks)

BulletList [[Block]]

Bullet list (list of items, each a list of blocks)

DefinitionList [([Inline], [[Block]])]

Definition list Each list item is a pair consisting of a term (a list of inlines) and one or more definitions (each a list of blocks)

Header Int Attr [Inline]

Header - level (integer) and text (inlines)

HorizontalRule

Horizontal rule

Table [Inline] [Alignment] [Double] [TableCell] [[TableCell]]

Table, with caption, column alignments (required), relative column widths (0 = default), column headers (each a list of blocks), and rows (each a list of lists of blocks)

Div Attr [Block]

Generic block container with attributes

Null

Nothing

Instances

Instances details
Eq Block # 
Instance details

Defined in Text.Pandoc.Definition

Methods

(==) :: Block -> Block -> Bool

(/=) :: Block -> Block -> Bool

Data Block # 
Instance details

Defined in Text.Pandoc.Definition

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

toConstr :: Block -> Constr

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

Ord Block # 
Instance details

Defined in Text.Pandoc.Definition

Methods

compare :: Block -> Block -> Ordering

(<) :: Block -> Block -> Bool

(<=) :: Block -> Block -> Bool

(>) :: Block -> Block -> Bool

(>=) :: Block -> Block -> Bool

max :: Block -> Block -> Block

min :: Block -> Block -> Block

Read Block # 
Instance details

Defined in Text.Pandoc.Definition

Methods

readsPrec :: Int -> ReadS Block #

readList :: ReadS [Block] #

readPrec :: ReadPrec Block #

readListPrec :: ReadPrec [Block] #

Show Block # 
Instance details

Defined in Text.Pandoc.Definition

Methods

showsPrec :: Int -> Block -> ShowS

show :: Block -> String

showList :: [Block] -> ShowS

Generic Block # 
Instance details

Defined in Text.Pandoc.Definition

Associated Types

type Rep Block :: Type -> Type

Methods

from :: Block -> Rep Block x

to :: Rep Block x -> Block

Semigroup Blocks # 
Instance details

Defined in Text.Pandoc.Builder

Methods

(<>) :: Blocks -> Blocks -> Blocks #

sconcat :: NonEmpty Blocks -> Blocks #

stimes :: Integral b => b -> Blocks -> Blocks #

Monoid Blocks # 
Instance details

Defined in Text.Pandoc.Builder

Arbitrary Block # 
Instance details

Defined in Text.Pandoc.Arbitrary

Methods

arbitrary :: Gen Block #

shrink :: Block -> [Block] #

Arbitrary Blocks # 
Instance details

Defined in Text.Pandoc.Arbitrary

FromJSON Block # 
Instance details

Defined in Text.Pandoc.Definition

Methods

parseJSON :: Value -> Parser Block

parseJSONList :: Value -> Parser [Block]

ToJSON Block # 
Instance details

Defined in Text.Pandoc.Definition

Methods

toJSON :: Block -> Value

toEncoding :: Block -> Encoding

toJSONList :: [Block] -> Value

toEncodingList :: [Block] -> Encoding

NFData Block # 
Instance details

Defined in Text.Pandoc.Definition

Methods

rnf :: Block -> ()

ToMetaValue Blocks # 
Instance details

Defined in Text.Pandoc.Builder

ToMetaValue Blocks # 
Instance details

Defined in Text.Pandoc.Legacy.Builder

Walkable Inline Block # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Inline -> Inline) -> Block -> Block #

walkM :: (Monad m, Applicative m, Functor m) => (Inline -> m Inline) -> Block -> m Block #

query :: Monoid c => (Inline -> c) -> Block -> c #

Walkable Block Citation # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Block -> Block) -> Citation -> Citation #

walkM :: (Monad m, Applicative m, Functor m) => (Block -> m Block) -> Citation -> m Citation #

query :: Monoid c => (Block -> c) -> Citation -> c #

Walkable Block Inline # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Block -> Block) -> Inline -> Inline #

walkM :: (Monad m, Applicative m, Functor m) => (Block -> m Block) -> Inline -> m Inline #

query :: Monoid c => (Block -> c) -> Inline -> c #

Walkable Block Block # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Block -> Block) -> Block -> Block #

walkM :: (Monad m, Applicative m, Functor m) => (Block -> m Block) -> Block -> m Block #

query :: Monoid c => (Block -> c) -> Block -> c #

Walkable Block MetaValue # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Block -> Block) -> MetaValue -> MetaValue #

walkM :: (Monad m, Applicative m, Functor m) => (Block -> m Block) -> MetaValue -> m MetaValue #

query :: Monoid c => (Block -> c) -> MetaValue -> c #

Walkable Block Meta # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Block -> Block) -> Meta -> Meta #

walkM :: (Monad m, Applicative m, Functor m) => (Block -> m Block) -> Meta -> m Meta #

query :: Monoid c => (Block -> c) -> Meta -> c #

Walkable Block Pandoc # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Block -> Block) -> Pandoc -> Pandoc #

walkM :: (Monad m, Applicative m, Functor m) => (Block -> m Block) -> Pandoc -> m Pandoc #

query :: Monoid c => (Block -> c) -> Pandoc -> c #

Walkable [Inline] Block # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Inline] -> [Inline]) -> Block -> Block #

walkM :: (Monad m, Applicative m, Functor m) => ([Inline] -> m [Inline]) -> Block -> m Block #

query :: Monoid c => ([Inline] -> c) -> Block -> c #

Walkable [Block] Citation # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Block] -> [Block]) -> Citation -> Citation #

walkM :: (Monad m, Applicative m, Functor m) => ([Block] -> m [Block]) -> Citation -> m Citation #

query :: Monoid c => ([Block] -> c) -> Citation -> c #

Walkable [Block] Inline # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Block] -> [Block]) -> Inline -> Inline #

walkM :: (Monad m, Applicative m, Functor m) => ([Block] -> m [Block]) -> Inline -> m Inline #

query :: Monoid c => ([Block] -> c) -> Inline -> c #

Walkable [Block] Block # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Block] -> [Block]) -> Block -> Block #

walkM :: (Monad m, Applicative m, Functor m) => ([Block] -> m [Block]) -> Block -> m Block #

query :: Monoid c => ([Block] -> c) -> Block -> c #

Walkable [Block] MetaValue # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Block] -> [Block]) -> MetaValue -> MetaValue #

walkM :: (Monad m, Applicative m, Functor m) => ([Block] -> m [Block]) -> MetaValue -> m MetaValue #

query :: Monoid c => ([Block] -> c) -> MetaValue -> c #

Walkable [Block] Meta # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Block] -> [Block]) -> Meta -> Meta #

walkM :: (Monad m, Applicative m, Functor m) => ([Block] -> m [Block]) -> Meta -> m Meta #

query :: Monoid c => ([Block] -> c) -> Meta -> c #

Walkable [Block] Pandoc # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Block] -> [Block]) -> Pandoc -> Pandoc #

walkM :: (Monad m, Applicative m, Functor m) => ([Block] -> m [Block]) -> Pandoc -> m Pandoc #

query :: Monoid c => ([Block] -> c) -> Pandoc -> c #

Walkable [Block] [Block] # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Block] -> [Block]) -> [Block] -> [Block] #

walkM :: (Monad m, Applicative m, Functor m) => ([Block] -> m [Block]) -> [Block] -> m [Block] #

query :: Monoid c => ([Block] -> c) -> [Block] -> c #

type Rep Block # 
Instance details

Defined in Text.Pandoc.Definition

type Rep Block = D1 ('MetaData "Block" "Text.Pandoc.Definition" "pandoc-types-1.20-sToD4GOnC9Li1cr6PAiTH" 'False) (((C1 ('MetaCons "Plain" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline])) :+: (C1 ('MetaCons "Para" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline])) :+: C1 ('MetaCons "LineBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [[Inline]])))) :+: ((C1 ('MetaCons "CodeBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "RawBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Format) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :+: (C1 ('MetaCons "BlockQuote" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Block])) :+: C1 ('MetaCons "OrderedList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ListAttributes) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [[Block]]))))) :+: ((C1 ('MetaCons "BulletList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [[Block]])) :+: (C1 ('MetaCons "DefinitionList" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [([Inline], [[Block]])])) :+: C1 ('MetaCons "Header" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline]))))) :+: ((C1 ('MetaCons "HorizontalRule" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Table" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Alignment])) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Double]) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TableCell]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [[TableCell]]))))) :+: (C1 ('MetaCons "Div" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Block])) :+: C1 ('MetaCons "Null" 'PrefixI 'False) (U1 :: Type -> Type)))))

data Inline #

Inline elements.

Constructors

Str Text

Text (string)

Emph [Inline]

Emphasized text (list of inlines)

Strong [Inline]

Strongly emphasized text (list of inlines)

Strikeout [Inline]

Strikeout text (list of inlines)

Superscript [Inline]

Superscripted text (list of inlines)

Subscript [Inline]

Subscripted text (list of inlines)

SmallCaps [Inline]

Small caps text (list of inlines)

Quoted QuoteType [Inline]

Quoted text (list of inlines)

Cite [Citation] [Inline]

Citation (list of inlines)

Code Attr Text

Inline code (literal)

Space

Inter-word space

SoftBreak

Soft line break

LineBreak

Hard line break

Math MathType Text

TeX math (literal)

RawInline Format Text

Raw inline

Link Attr [Inline] Target

Hyperlink: alt text (list of inlines), target

Image Attr [Inline] Target

Image: alt text (list of inlines), target

Note [Block]

Footnote or endnote

Span Attr [Inline]

Generic inline container with attributes

Instances

Instances details
Eq Inline # 
Instance details

Defined in Text.Pandoc.Definition

Methods

(==) :: Inline -> Inline -> Bool

(/=) :: Inline -> Inline -> Bool

Data Inline # 
Instance details

Defined in Text.Pandoc.Definition

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

toConstr :: Inline -> Constr

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

Ord Inline # 
Instance details

Defined in Text.Pandoc.Definition

Methods

compare :: Inline -> Inline -> Ordering

(<) :: Inline -> Inline -> Bool

(<=) :: Inline -> Inline -> Bool

(>) :: Inline -> Inline -> Bool

(>=) :: Inline -> Inline -> Bool

max :: Inline -> Inline -> Inline

min :: Inline -> Inline -> Inline

Read Inline # 
Instance details

Defined in Text.Pandoc.Definition

Methods

readsPrec :: Int -> ReadS Inline #

readList :: ReadS [Inline] #

readPrec :: ReadPrec Inline #

readListPrec :: ReadPrec [Inline] #

Show Inline # 
Instance details

Defined in Text.Pandoc.Definition

Methods

showsPrec :: Int -> Inline -> ShowS

show :: Inline -> String

showList :: [Inline] -> ShowS

IsString Inlines 
Instance details

Defined in Text.Pandoc.Builder

Generic Inline # 
Instance details

Defined in Text.Pandoc.Definition

Associated Types

type Rep Inline :: Type -> Type

Methods

from :: Inline -> Rep Inline x

to :: Rep Inline x -> Inline

Semigroup Inlines # 
Instance details

Defined in Text.Pandoc.Builder

Methods

(<>) :: Inlines -> Inlines -> Inlines #

sconcat :: NonEmpty Inlines -> Inlines #

stimes :: Integral b => b -> Inlines -> Inlines #

Monoid Inlines # 
Instance details

Defined in Text.Pandoc.Builder

Arbitrary Inline # 
Instance details

Defined in Text.Pandoc.Arbitrary

Arbitrary Inlines # 
Instance details

Defined in Text.Pandoc.Arbitrary

FromJSON Inline # 
Instance details

Defined in Text.Pandoc.Definition

Methods

parseJSON :: Value -> Parser Inline

parseJSONList :: Value -> Parser [Inline]

ToJSON Inline # 
Instance details

Defined in Text.Pandoc.Definition

Methods

toJSON :: Inline -> Value

toEncoding :: Inline -> Encoding

toJSONList :: [Inline] -> Value

toEncodingList :: [Inline] -> Encoding

NFData Inline # 
Instance details

Defined in Text.Pandoc.Definition

Methods

rnf :: Inline -> ()

ToMetaValue Inlines # 
Instance details

Defined in Text.Pandoc.Builder

ToMetaValue Inlines # 
Instance details

Defined in Text.Pandoc.Legacy.Builder

Walkable Inline Citation # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Inline -> Inline) -> Citation -> Citation #

walkM :: (Monad m, Applicative m, Functor m) => (Inline -> m Inline) -> Citation -> m Citation #

query :: Monoid c => (Inline -> c) -> Citation -> c #

Walkable Inline Inline # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Inline -> Inline) -> Inline -> Inline #

walkM :: (Monad m, Applicative m, Functor m) => (Inline -> m Inline) -> Inline -> m Inline #

query :: Monoid c => (Inline -> c) -> Inline -> c #

Walkable Inline Block # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Inline -> Inline) -> Block -> Block #

walkM :: (Monad m, Applicative m, Functor m) => (Inline -> m Inline) -> Block -> m Block #

query :: Monoid c => (Inline -> c) -> Block -> c #

Walkable Inline MetaValue # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Inline -> Inline) -> MetaValue -> MetaValue #

walkM :: (Monad m, Applicative m, Functor m) => (Inline -> m Inline) -> MetaValue -> m MetaValue #

query :: Monoid c => (Inline -> c) -> MetaValue -> c #

Walkable Inline Meta # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Inline -> Inline) -> Meta -> Meta #

walkM :: (Monad m, Applicative m, Functor m) => (Inline -> m Inline) -> Meta -> m Meta #

query :: Monoid c => (Inline -> c) -> Meta -> c #

Walkable Inline Pandoc # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Inline -> Inline) -> Pandoc -> Pandoc #

walkM :: (Monad m, Applicative m, Functor m) => (Inline -> m Inline) -> Pandoc -> m Pandoc #

query :: Monoid c => (Inline -> c) -> Pandoc -> c #

Walkable Block Inline # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Block -> Block) -> Inline -> Inline #

walkM :: (Monad m, Applicative m, Functor m) => (Block -> m Block) -> Inline -> m Inline #

query :: Monoid c => (Block -> c) -> Inline -> c #

Walkable [Inline] Citation # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Inline] -> [Inline]) -> Citation -> Citation #

walkM :: (Monad m, Applicative m, Functor m) => ([Inline] -> m [Inline]) -> Citation -> m Citation #

query :: Monoid c => ([Inline] -> c) -> Citation -> c #

Walkable [Inline] Inline # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Inline] -> [Inline]) -> Inline -> Inline #

walkM :: (Monad m, Applicative m, Functor m) => ([Inline] -> m [Inline]) -> Inline -> m Inline #

query :: Monoid c => ([Inline] -> c) -> Inline -> c #

Walkable [Inline] Block # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Inline] -> [Inline]) -> Block -> Block #

walkM :: (Monad m, Applicative m, Functor m) => ([Inline] -> m [Inline]) -> Block -> m Block #

query :: Monoid c => ([Inline] -> c) -> Block -> c #

Walkable [Inline] MetaValue # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Inline] -> [Inline]) -> MetaValue -> MetaValue #

walkM :: (Monad m, Applicative m, Functor m) => ([Inline] -> m [Inline]) -> MetaValue -> m MetaValue #

query :: Monoid c => ([Inline] -> c) -> MetaValue -> c #

Walkable [Inline] Meta # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Inline] -> [Inline]) -> Meta -> Meta #

walkM :: (Monad m, Applicative m, Functor m) => ([Inline] -> m [Inline]) -> Meta -> m Meta #

query :: Monoid c => ([Inline] -> c) -> Meta -> c #

Walkable [Inline] Pandoc # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Inline] -> [Inline]) -> Pandoc -> Pandoc #

walkM :: (Monad m, Applicative m, Functor m) => ([Inline] -> m [Inline]) -> Pandoc -> m Pandoc #

query :: Monoid c => ([Inline] -> c) -> Pandoc -> c #

Walkable [Block] Inline # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Block] -> [Block]) -> Inline -> Inline #

walkM :: (Monad m, Applicative m, Functor m) => ([Block] -> m [Block]) -> Inline -> m Inline #

query :: Monoid c => ([Block] -> c) -> Inline -> c #

Walkable [Inline] [Inline] # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Inline] -> [Inline]) -> [Inline] -> [Inline] #

walkM :: (Monad m, Applicative m, Functor m) => ([Inline] -> m [Inline]) -> [Inline] -> m [Inline] #

query :: Monoid c => ([Inline] -> c) -> [Inline] -> c #

type Rep Inline # 
Instance details

Defined in Text.Pandoc.Definition

type Rep Inline = D1 ('MetaData "Inline" "Text.Pandoc.Definition" "pandoc-types-1.20-sToD4GOnC9Li1cr6PAiTH" 'False) ((((C1 ('MetaCons "Str" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "Emph" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline]))) :+: (C1 ('MetaCons "Strong" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline])) :+: C1 ('MetaCons "Strikeout" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline])))) :+: ((C1 ('MetaCons "Superscript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline])) :+: C1 ('MetaCons "Subscript" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline]))) :+: (C1 ('MetaCons "SmallCaps" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline])) :+: (C1 ('MetaCons "Quoted" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 QuoteType) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline])) :+: C1 ('MetaCons "Cite" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Citation]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline])))))) :+: (((C1 ('MetaCons "Code" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "Space" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SoftBreak" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LineBreak" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Math" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MathType) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))) :+: ((C1 ('MetaCons "RawInline" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Format) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "Link" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Attr) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Target)))) :+: (C1 ('MetaCons "Image" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Attr) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Target))) :+: (C1 ('MetaCons "Note" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Block])) :+: C1 ('MetaCons "Span" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Attr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline])))))))

data Alignment #

Alignment of a table column.

Instances

Instances details
Eq Alignment # 
Instance details

Defined in Text.Pandoc.Definition

Methods

(==) :: Alignment -> Alignment -> Bool

(/=) :: Alignment -> Alignment -> Bool

Data Alignment # 
Instance details

Defined in Text.Pandoc.Definition

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Alignment -> c Alignment

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Alignment

toConstr :: Alignment -> Constr

dataTypeOf :: Alignment -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Alignment)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Alignment)

gmapT :: (forall b. Data b => b -> b) -> Alignment -> Alignment

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Alignment -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Alignment -> r

gmapQ :: (forall d. Data d => d -> u) -> Alignment -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Alignment -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Alignment -> m Alignment

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Alignment -> m Alignment

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Alignment -> m Alignment

Ord Alignment # 
Instance details

Defined in Text.Pandoc.Definition

Methods

compare :: Alignment -> Alignment -> Ordering

(<) :: Alignment -> Alignment -> Bool

(<=) :: Alignment -> Alignment -> Bool

(>) :: Alignment -> Alignment -> Bool

(>=) :: Alignment -> Alignment -> Bool

max :: Alignment -> Alignment -> Alignment

min :: Alignment -> Alignment -> Alignment

Read Alignment # 
Instance details

Defined in Text.Pandoc.Definition

Methods

readsPrec :: Int -> ReadS Alignment #

readList :: ReadS [Alignment] #

readPrec :: ReadPrec Alignment #

readListPrec :: ReadPrec [Alignment] #

Show Alignment # 
Instance details

Defined in Text.Pandoc.Definition

Methods

showsPrec :: Int -> Alignment -> ShowS

show :: Alignment -> String

showList :: [Alignment] -> ShowS

Generic Alignment # 
Instance details

Defined in Text.Pandoc.Definition

Associated Types

type Rep Alignment :: Type -> Type

Methods

from :: Alignment -> Rep Alignment x

to :: Rep Alignment x -> Alignment

Arbitrary Alignment # 
Instance details

Defined in Text.Pandoc.Arbitrary

FromJSON Alignment # 
Instance details

Defined in Text.Pandoc.Definition

Methods

parseJSON :: Value -> Parser Alignment

parseJSONList :: Value -> Parser [Alignment]

ToJSON Alignment # 
Instance details

Defined in Text.Pandoc.Definition

Methods

toJSON :: Alignment -> Value

toEncoding :: Alignment -> Encoding

toJSONList :: [Alignment] -> Value

toEncodingList :: [Alignment] -> Encoding

NFData Alignment # 
Instance details

Defined in Text.Pandoc.Definition

Methods

rnf :: Alignment -> ()

type Rep Alignment # 
Instance details

Defined in Text.Pandoc.Definition

type Rep Alignment = D1 ('MetaData "Alignment" "Text.Pandoc.Definition" "pandoc-types-1.20-sToD4GOnC9Li1cr6PAiTH" '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)))

type ListAttributes = (Int, ListNumberStyle, ListNumberDelim) #

List attributes. The first element of the triple is the start number of the list.

data ListNumberStyle #

Style of list numbers.

Instances

Instances details
Eq ListNumberStyle # 
Instance details

Defined in Text.Pandoc.Definition

Data ListNumberStyle # 
Instance details

Defined in Text.Pandoc.Definition

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListNumberStyle -> c ListNumberStyle

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListNumberStyle

toConstr :: ListNumberStyle -> Constr

dataTypeOf :: ListNumberStyle -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListNumberStyle)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListNumberStyle)

gmapT :: (forall b. Data b => b -> b) -> ListNumberStyle -> ListNumberStyle

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListNumberStyle -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListNumberStyle -> r

gmapQ :: (forall d. Data d => d -> u) -> ListNumberStyle -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListNumberStyle -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListNumberStyle -> m ListNumberStyle

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListNumberStyle -> m ListNumberStyle

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListNumberStyle -> m ListNumberStyle

Ord ListNumberStyle # 
Instance details

Defined in Text.Pandoc.Definition

Read ListNumberStyle # 
Instance details

Defined in Text.Pandoc.Definition

Show ListNumberStyle # 
Instance details

Defined in Text.Pandoc.Definition

Methods

showsPrec :: Int -> ListNumberStyle -> ShowS

show :: ListNumberStyle -> String

showList :: [ListNumberStyle] -> ShowS

Generic ListNumberStyle # 
Instance details

Defined in Text.Pandoc.Definition

Associated Types

type Rep ListNumberStyle :: Type -> Type

Arbitrary ListNumberStyle # 
Instance details

Defined in Text.Pandoc.Arbitrary

FromJSON ListNumberStyle # 
Instance details

Defined in Text.Pandoc.Definition

Methods

parseJSON :: Value -> Parser ListNumberStyle

parseJSONList :: Value -> Parser [ListNumberStyle]

ToJSON ListNumberStyle # 
Instance details

Defined in Text.Pandoc.Definition

Methods

toJSON :: ListNumberStyle -> Value

toEncoding :: ListNumberStyle -> Encoding

toJSONList :: [ListNumberStyle] -> Value

toEncodingList :: [ListNumberStyle] -> Encoding

NFData ListNumberStyle # 
Instance details

Defined in Text.Pandoc.Definition

Methods

rnf :: ListNumberStyle -> ()

type Rep ListNumberStyle # 
Instance details

Defined in Text.Pandoc.Definition

type Rep ListNumberStyle = D1 ('MetaData "ListNumberStyle" "Text.Pandoc.Definition" "pandoc-types-1.20-sToD4GOnC9Li1cr6PAiTH" 'False) ((C1 ('MetaCons "DefaultStyle" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Example" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Decimal" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "LowerRoman" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UpperRoman" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LowerAlpha" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UpperAlpha" 'PrefixI 'False) (U1 :: Type -> Type))))

data ListNumberDelim #

Delimiter of list numbers.

Instances

Instances details
Eq ListNumberDelim # 
Instance details

Defined in Text.Pandoc.Definition

Data ListNumberDelim # 
Instance details

Defined in Text.Pandoc.Definition

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListNumberDelim -> c ListNumberDelim

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListNumberDelim

toConstr :: ListNumberDelim -> Constr

dataTypeOf :: ListNumberDelim -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListNumberDelim)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListNumberDelim)

gmapT :: (forall b. Data b => b -> b) -> ListNumberDelim -> ListNumberDelim

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListNumberDelim -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListNumberDelim -> r

gmapQ :: (forall d. Data d => d -> u) -> ListNumberDelim -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListNumberDelim -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListNumberDelim -> m ListNumberDelim

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListNumberDelim -> m ListNumberDelim

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListNumberDelim -> m ListNumberDelim

Ord ListNumberDelim # 
Instance details

Defined in Text.Pandoc.Definition

Read ListNumberDelim # 
Instance details

Defined in Text.Pandoc.Definition

Show ListNumberDelim # 
Instance details

Defined in Text.Pandoc.Definition

Methods

showsPrec :: Int -> ListNumberDelim -> ShowS

show :: ListNumberDelim -> String

showList :: [ListNumberDelim] -> ShowS

Generic ListNumberDelim # 
Instance details

Defined in Text.Pandoc.Definition

Associated Types

type Rep ListNumberDelim :: Type -> Type

Arbitrary ListNumberDelim # 
Instance details

Defined in Text.Pandoc.Arbitrary

FromJSON ListNumberDelim # 
Instance details

Defined in Text.Pandoc.Definition

Methods

parseJSON :: Value -> Parser ListNumberDelim

parseJSONList :: Value -> Parser [ListNumberDelim]

ToJSON ListNumberDelim # 
Instance details

Defined in Text.Pandoc.Definition

Methods

toJSON :: ListNumberDelim -> Value

toEncoding :: ListNumberDelim -> Encoding

toJSONList :: [ListNumberDelim] -> Value

toEncodingList :: [ListNumberDelim] -> Encoding

NFData ListNumberDelim # 
Instance details

Defined in Text.Pandoc.Definition

Methods

rnf :: ListNumberDelim -> ()

type Rep ListNumberDelim # 
Instance details

Defined in Text.Pandoc.Definition

type Rep ListNumberDelim = D1 ('MetaData "ListNumberDelim" "Text.Pandoc.Definition" "pandoc-types-1.20-sToD4GOnC9Li1cr6PAiTH" 'False) ((C1 ('MetaCons "DefaultDelim" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Period" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "OneParen" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TwoParens" 'PrefixI 'False) (U1 :: Type -> Type)))

newtype Format #

Formats for raw blocks

Constructors

Format Text 

Instances

Instances details
Eq Format # 
Instance details

Defined in Text.Pandoc.Definition

Methods

(==) :: Format -> Format -> Bool

(/=) :: Format -> Format -> Bool

Data Format # 
Instance details

Defined in Text.Pandoc.Definition

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

toConstr :: Format -> Constr

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

Ord Format # 
Instance details

Defined in Text.Pandoc.Definition

Methods

compare :: Format -> Format -> Ordering

(<) :: Format -> Format -> Bool

(<=) :: Format -> Format -> Bool

(>) :: Format -> Format -> Bool

(>=) :: Format -> Format -> Bool

max :: Format -> Format -> Format

min :: Format -> Format -> Format

Read Format # 
Instance details

Defined in Text.Pandoc.Definition

Methods

readsPrec :: Int -> ReadS Format #

readList :: ReadS [Format] #

readPrec :: ReadPrec Format #

readListPrec :: ReadPrec [Format] #

Show Format # 
Instance details

Defined in Text.Pandoc.Definition

Methods

showsPrec :: Int -> Format -> ShowS

show :: Format -> String

showList :: [Format] -> ShowS

IsString Format # 
Instance details

Defined in Text.Pandoc.Definition

Methods

fromString :: String -> Format

Generic Format # 
Instance details

Defined in Text.Pandoc.Definition

Associated Types

type Rep Format :: Type -> Type

Methods

from :: Format -> Rep Format x

to :: Rep Format x -> Format

FromJSON Format # 
Instance details

Defined in Text.Pandoc.Definition

Methods

parseJSON :: Value -> Parser Format

parseJSONList :: Value -> Parser [Format]

ToJSON Format # 
Instance details

Defined in Text.Pandoc.Definition

Methods

toJSON :: Format -> Value

toEncoding :: Format -> Encoding

toJSONList :: [Format] -> Value

toEncodingList :: [Format] -> Encoding

NFData Format # 
Instance details

Defined in Text.Pandoc.Definition

Methods

rnf :: Format -> ()

ToJSONFilter a => ToJSONFilter (Maybe Format -> a) # 
Instance details

Defined in Text.Pandoc.JSON

Methods

toJSONFilter :: (Maybe Format -> a) -> IO () #

type Rep Format # 
Instance details

Defined in Text.Pandoc.Definition

type Rep Format = D1 ('MetaData "Format" "Text.Pandoc.Definition" "pandoc-types-1.20-sToD4GOnC9Li1cr6PAiTH" 'True) (C1 ('MetaCons "Format" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

type Attr = (Text, [Text], [(Text, Text)]) #

Attributes: identifier, classes, key-value pairs

type TableCell = [Block] #

Table cells are list of Blocks

data QuoteType #

Type of quotation marks to use in Quoted inline.

Constructors

SingleQuote 
DoubleQuote 

Instances

Instances details
Eq QuoteType # 
Instance details

Defined in Text.Pandoc.Definition

Methods

(==) :: QuoteType -> QuoteType -> Bool

(/=) :: QuoteType -> QuoteType -> Bool

Data QuoteType # 
Instance details

Defined in Text.Pandoc.Definition

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

Ord QuoteType # 
Instance details

Defined in Text.Pandoc.Definition

Methods

compare :: QuoteType -> QuoteType -> Ordering

(<) :: QuoteType -> QuoteType -> Bool

(<=) :: QuoteType -> QuoteType -> Bool

(>) :: QuoteType -> QuoteType -> Bool

(>=) :: QuoteType -> QuoteType -> Bool

max :: QuoteType -> QuoteType -> QuoteType

min :: QuoteType -> QuoteType -> QuoteType

Read QuoteType # 
Instance details

Defined in Text.Pandoc.Definition

Methods

readsPrec :: Int -> ReadS QuoteType #

readList :: ReadS [QuoteType] #

readPrec :: ReadPrec QuoteType #

readListPrec :: ReadPrec [QuoteType] #

Show QuoteType # 
Instance details

Defined in Text.Pandoc.Definition

Methods

showsPrec :: Int -> QuoteType -> ShowS

show :: QuoteType -> String

showList :: [QuoteType] -> ShowS

Generic QuoteType # 
Instance details

Defined in Text.Pandoc.Definition

Associated Types

type Rep QuoteType :: Type -> Type

Methods

from :: QuoteType -> Rep QuoteType x

to :: Rep QuoteType x -> QuoteType

Arbitrary QuoteType # 
Instance details

Defined in Text.Pandoc.Arbitrary

FromJSON QuoteType # 
Instance details

Defined in Text.Pandoc.Definition

Methods

parseJSON :: Value -> Parser QuoteType

parseJSONList :: Value -> Parser [QuoteType]

ToJSON QuoteType # 
Instance details

Defined in Text.Pandoc.Definition

Methods

toJSON :: QuoteType -> Value

toEncoding :: QuoteType -> Encoding

toJSONList :: [QuoteType] -> Value

toEncodingList :: [QuoteType] -> Encoding

NFData QuoteType # 
Instance details

Defined in Text.Pandoc.Definition

Methods

rnf :: QuoteType -> ()

type Rep QuoteType # 
Instance details

Defined in Text.Pandoc.Definition

type Rep QuoteType = D1 ('MetaData "QuoteType" "Text.Pandoc.Definition" "pandoc-types-1.20-sToD4GOnC9Li1cr6PAiTH" 'False) (C1 ('MetaCons "SingleQuote" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DoubleQuote" 'PrefixI 'False) (U1 :: Type -> Type))

type Target = (Text, Text) #

Link target (URL, title).

data MathType #

Type of math element (display or inline).

Constructors

DisplayMath 
InlineMath 

Instances

Instances details
Eq MathType # 
Instance details

Defined in Text.Pandoc.Definition

Methods

(==) :: MathType -> MathType -> Bool

(/=) :: MathType -> MathType -> Bool

Data MathType # 
Instance details

Defined in Text.Pandoc.Definition

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MathType -> c MathType

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MathType

toConstr :: MathType -> Constr

dataTypeOf :: MathType -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MathType)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MathType)

gmapT :: (forall b. Data b => b -> b) -> MathType -> MathType

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MathType -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MathType -> r

gmapQ :: (forall d. Data d => d -> u) -> MathType -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> MathType -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MathType -> m MathType

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MathType -> m MathType

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MathType -> m MathType

Ord MathType # 
Instance details

Defined in Text.Pandoc.Definition

Methods

compare :: MathType -> MathType -> Ordering

(<) :: MathType -> MathType -> Bool

(<=) :: MathType -> MathType -> Bool

(>) :: MathType -> MathType -> Bool

(>=) :: MathType -> MathType -> Bool

max :: MathType -> MathType -> MathType

min :: MathType -> MathType -> MathType

Read MathType # 
Instance details

Defined in Text.Pandoc.Definition

Methods

readsPrec :: Int -> ReadS MathType #

readList :: ReadS [MathType] #

readPrec :: ReadPrec MathType #

readListPrec :: ReadPrec [MathType] #

Show MathType # 
Instance details

Defined in Text.Pandoc.Definition

Methods

showsPrec :: Int -> MathType -> ShowS

show :: MathType -> String

showList :: [MathType] -> ShowS

Generic MathType # 
Instance details

Defined in Text.Pandoc.Definition

Associated Types

type Rep MathType :: Type -> Type

Methods

from :: MathType -> Rep MathType x

to :: Rep MathType x -> MathType

Arbitrary MathType # 
Instance details

Defined in Text.Pandoc.Arbitrary

FromJSON MathType # 
Instance details

Defined in Text.Pandoc.Definition

Methods

parseJSON :: Value -> Parser MathType

parseJSONList :: Value -> Parser [MathType]

ToJSON MathType # 
Instance details

Defined in Text.Pandoc.Definition

Methods

toJSON :: MathType -> Value

toEncoding :: MathType -> Encoding

toJSONList :: [MathType] -> Value

toEncodingList :: [MathType] -> Encoding

NFData MathType # 
Instance details

Defined in Text.Pandoc.Definition

Methods

rnf :: MathType -> ()

type Rep MathType # 
Instance details

Defined in Text.Pandoc.Definition

type Rep MathType = D1 ('MetaData "MathType" "Text.Pandoc.Definition" "pandoc-types-1.20-sToD4GOnC9Li1cr6PAiTH" 'False) (C1 ('MetaCons "DisplayMath" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InlineMath" 'PrefixI 'False) (U1 :: Type -> Type))

data Citation #

Instances

Instances details
Eq Citation # 
Instance details

Defined in Text.Pandoc.Definition

Methods

(==) :: Citation -> Citation -> Bool

(/=) :: Citation -> Citation -> Bool

Data Citation # 
Instance details

Defined in Text.Pandoc.Definition

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Citation -> c Citation

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Citation

toConstr :: Citation -> Constr

dataTypeOf :: Citation -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Citation)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Citation)

gmapT :: (forall b. Data b => b -> b) -> Citation -> Citation

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Citation -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Citation -> r

gmapQ :: (forall d. Data d => d -> u) -> Citation -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Citation -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Citation -> m Citation

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Citation -> m Citation

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Citation -> m Citation

Ord Citation # 
Instance details

Defined in Text.Pandoc.Definition

Methods

compare :: Citation -> Citation -> Ordering

(<) :: Citation -> Citation -> Bool

(<=) :: Citation -> Citation -> Bool

(>) :: Citation -> Citation -> Bool

(>=) :: Citation -> Citation -> Bool

max :: Citation -> Citation -> Citation

min :: Citation -> Citation -> Citation

Read Citation # 
Instance details

Defined in Text.Pandoc.Definition

Methods

readsPrec :: Int -> ReadS Citation #

readList :: ReadS [Citation] #

readPrec :: ReadPrec Citation #

readListPrec :: ReadPrec [Citation] #

Show Citation # 
Instance details

Defined in Text.Pandoc.Definition

Methods

showsPrec :: Int -> Citation -> ShowS

show :: Citation -> String

showList :: [Citation] -> ShowS

Generic Citation # 
Instance details

Defined in Text.Pandoc.Definition

Associated Types

type Rep Citation :: Type -> Type

Methods

from :: Citation -> Rep Citation x

to :: Rep Citation x -> Citation

Arbitrary Citation # 
Instance details

Defined in Text.Pandoc.Arbitrary

FromJSON Citation # 
Instance details

Defined in Text.Pandoc.Definition

Methods

parseJSON :: Value -> Parser Citation

parseJSONList :: Value -> Parser [Citation]

ToJSON Citation # 
Instance details

Defined in Text.Pandoc.Definition

Methods

toJSON :: Citation -> Value

toEncoding :: Citation -> Encoding

toJSONList :: [Citation] -> Value

toEncodingList :: [Citation] -> Encoding

NFData Citation # 
Instance details

Defined in Text.Pandoc.Definition

Methods

rnf :: Citation -> ()

Walkable Inline Citation # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Inline -> Inline) -> Citation -> Citation #

walkM :: (Monad m, Applicative m, Functor m) => (Inline -> m Inline) -> Citation -> m Citation #

query :: Monoid c => (Inline -> c) -> Citation -> c #

Walkable Block Citation # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: (Block -> Block) -> Citation -> Citation #

walkM :: (Monad m, Applicative m, Functor m) => (Block -> m Block) -> Citation -> m Citation #

query :: Monoid c => (Block -> c) -> Citation -> c #

Walkable [Inline] Citation # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Inline] -> [Inline]) -> Citation -> Citation #

walkM :: (Monad m, Applicative m, Functor m) => ([Inline] -> m [Inline]) -> Citation -> m Citation #

query :: Monoid c => ([Inline] -> c) -> Citation -> c #

Walkable [Block] Citation # 
Instance details

Defined in Text.Pandoc.Walk

Methods

walk :: ([Block] -> [Block]) -> Citation -> Citation #

walkM :: (Monad m, Applicative m, Functor m) => ([Block] -> m [Block]) -> Citation -> m Citation #

query :: Monoid c => ([Block] -> c) -> Citation -> c #

type Rep Citation # 
Instance details

Defined in Text.Pandoc.Definition

type Rep Citation = D1 ('MetaData "Citation" "Text.Pandoc.Definition" "pandoc-types-1.20-sToD4GOnC9Li1cr6PAiTH" 'False) (C1 ('MetaCons "Citation" 'PrefixI 'True) ((S1 ('MetaSel ('Just "citationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "citationPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline]) :*: S1 ('MetaSel ('Just "citationSuffix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Inline]))) :*: (S1 ('MetaSel ('Just "citationMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CitationMode) :*: (S1 ('MetaSel ('Just "citationNoteNum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "citationHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))))

data CitationMode #

Instances

Instances details
Eq CitationMode # 
Instance details

Defined in Text.Pandoc.Definition

Methods

(==) :: CitationMode -> CitationMode -> Bool

(/=) :: CitationMode -> CitationMode -> Bool

Data CitationMode # 
Instance details

Defined in Text.Pandoc.Definition

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CitationMode -> c CitationMode

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CitationMode

toConstr :: CitationMode -> Constr

dataTypeOf :: CitationMode -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CitationMode)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CitationMode)

gmapT :: (forall b. Data b => b -> b) -> CitationMode -> CitationMode

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CitationMode -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CitationMode -> r

gmapQ :: (forall d. Data d => d -> u) -> CitationMode -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> CitationMode -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CitationMode -> m CitationMode

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CitationMode -> m CitationMode

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CitationMode -> m CitationMode

Ord CitationMode # 
Instance details

Defined in Text.Pandoc.Definition

Read CitationMode # 
Instance details

Defined in Text.Pandoc.Definition

Show CitationMode # 
Instance details

Defined in Text.Pandoc.Definition

Methods

showsPrec :: Int -> CitationMode -> ShowS

show :: CitationMode -> String

showList :: [CitationMode] -> ShowS

Generic CitationMode # 
Instance details

Defined in Text.Pandoc.Definition

Associated Types

type Rep CitationMode :: Type -> Type

Arbitrary CitationMode # 
Instance details

Defined in Text.Pandoc.Arbitrary

FromJSON CitationMode # 
Instance details

Defined in Text.Pandoc.Definition

Methods

parseJSON :: Value -> Parser CitationMode

parseJSONList :: Value -> Parser [CitationMode]

ToJSON CitationMode # 
Instance details

Defined in Text.Pandoc.Definition

Methods

toJSON :: CitationMode -> Value

toEncoding :: CitationMode -> Encoding

toJSONList :: [CitationMode] -> Value

toEncodingList :: [CitationMode] -> Encoding

NFData CitationMode # 
Instance details

Defined in Text.Pandoc.Definition

Methods

rnf :: CitationMode -> ()

type Rep CitationMode # 
Instance details

Defined in Text.Pandoc.Definition

type Rep CitationMode = D1 ('MetaData "CitationMode" "Text.Pandoc.Definition" "pandoc-types-1.20-sToD4GOnC9Li1cr6PAiTH" 'False) (C1 ('MetaCons "AuthorInText" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SuppressAuthor" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NormalCitation" 'PrefixI 'False) (U1 :: Type -> Type)))