HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulepandoc-types-1.23.1Haskell2010

Text.Pandoc.Definition

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

  • 28 types
  • 8 values
datadata Pandoc
#

Constructors

Instances21Eq, Data, Ord, Read, Show, Generic, …
newtypenewtype Meta
#

Metadata for the document: title, authors, date.

Constructors

Instances21Eq, Data, Ord, Read, Show, Generic, …
datadata MetaValue
#
Instances18Eq, Data, Ord, Read, Show, Generic, …
valuedocTitle :: Meta -> [Inline]
#

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

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

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

valuedocDate :: Meta -> [Inline]
#

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

datadata Block
#

Block element.

Constructors

Instances42Eq, Data, Ord, Read, Show, Generic, …
patternpattern SimpleFigure :: Attr -> [Inline] -> Target -> Block
#

Bidirectional patter synonym

It can pass as a Block constructor

Example1 expression
SimpleFigure nullAttr [] (T.pack "", T.pack "title")Para [Image ("",[],[]) [] ("","fig:title")]

It can be used to pattern match >>> let img = Para [Image undefined undefined (undefined, T.pack "title")] >>> case img of { SimpleFigure _ _ _ -> True; _ -> False } False >>> let fig = Para [Image undefined undefined (undefined, T.pack "fig:title")] >>> case fig of { SimpleFigure _ _ tit -> snd tit; _ -> T.pack "" } "title"

datadata Inline
#

Inline elements.

Constructors

Instances43Eq, Data, Ord, Read, Show, IsString, …
datadata ListNumberStyle
#
Instances11Eq, Data, Ord, Read, Show, Generic, …
datadata ListNumberDelim
#

Delimiter of list numbers.

Instances11Eq, Data, Ord, Read, Show, Generic, …
newtypenewtype Format
#

Formats for raw blocks

Constructors

Instances12Eq, Data, Ord, Read, Show, IsString, …
datadata Caption
#

The caption of a table or figure, with optional short caption.

Instances15Eq, Data, Ord, Read, Show, Generic, …
typetype ShortCaption = [Inline]
#

A short caption, for use in, for instance, lists of figures.

newtypenewtype RowHeadColumns
#

The number of columns taken up by the row head of each row of a TableBody. The row body takes up the remaining columns.

Constructors

Instances12Enum, Eq, Data, Num, Ord, Read, …
datadata Alignment
#

Alignment of a table column.

Instances11Eq, Data, Ord, Read, Show, Generic, …
datadata ColWidth
#

The width of a table column, as a percentage of the text width.

Instances10Eq, Data, Ord, Read, Show, Generic, …
datadata Row
#

A table row.

Constructors

Instances15Eq, Data, Ord, Read, Show, Generic, …
datadata TableHead
#

The head of a table.

Constructors

Instances15Eq, Data, Ord, Read, Show, Generic, …
datadata TableBody
#

A body of a table, with an intermediate head, intermediate body, and the specified number of row header columns in the intermediate body.

Instances15Eq, Data, Ord, Read, Show, Generic, …
datadata TableFoot
#

The foot of a table.

Constructors

Instances15Eq, Data, Ord, Read, Show, Generic, …
datadata Cell
#

A table cell.

Instances15Eq, Data, Ord, Read, Show, Generic, …
newtypenewtype RowSpan
#

The number of rows occupied by a cell; the height of a cell.

Constructors

Instances12Enum, Eq, Data, Num, Ord, Read, …
newtypenewtype ColSpan
#

The number of columns occupied by a cell; the width of a cell.

Constructors

Instances12Enum, Eq, Data, Num, Ord, Read, …
datadata QuoteType
#

Type of quotation marks to use in Quoted inline.

Instances11Eq, Data, Ord, Read, Show, Generic, …
datadata MathType
#

Type of math element (display or inline).

Instances11Eq, Data, Ord, Read, Show, Generic, …
datadata Citation
#
Instances15Eq, Data, Ord, Read, Show, Generic, …
datadata CitationMode
#
Instances11Eq, Data, Ord, Read, Show, Generic, …