A @since declaration.
Constructors
MetaSincesincePackage :: Maybe Packageoptional package qualification
sinceVersion :: Version
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11
Modulehaddock-library-1.11.0Haskell2010
Exposes documentation data types used for (some) of Haddock.
A @since declaration.
MetaSincesincePackage :: Maybe Packageoptional package qualification
sinceVersion :: VersionWith the advent of Version, we may want to start attaching more meta-data to comments. We make a structure for this ahead of time so we don't have to gut half the core each time we want to add such info.
Bifoldable MetaDocDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesBifunctor MetaDocDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesBitraversable MetaDocDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesFunctor (MetaDoc mod)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesFoldable (MetaDoc mod)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesTraversable (MetaDoc mod)Defined in haddock-library-1.11.0 · Documentation.Haddock.Types(Eq id, Eq mod) => Eq (MetaDoc mod id)Defined in haddock-library-1.11.0 · Documentation.Haddock.Types(Show id, Show mod) => Show (MetaDoc mod id)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesFunctor HyperlinkDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesFoldable HyperlinkDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesTraversable HyperlinkDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesEq id => Eq (Hyperlink id)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesShow id => Show (Hyperlink id)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesModLinkmodLinkName :: StringmodLinkLabel :: Maybe idFunctor ModLinkDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesFoldable ModLinkDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesTraversable ModLinkDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesEq id => Eq (ModLink id)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesShow id => Show (ModLink id)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesHeaderheaderLevel :: Intbetween 1 and 6 inclusive
headerTitle :: idFunctor HeaderDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesFoldable HeaderDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesTraversable HeaderDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesEq id => Eq (Header id)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesShow id => Show (Header id)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesFunctor TableCellDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesFoldable TableCellDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesTraversable TableCellDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesEq id => Eq (TableCell id)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesShow id => Show (TableCell id)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesTableRowtableRowCells :: [TableCell id]Functor TableRowDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesFoldable TableRowDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesTraversable TableRowDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesEq id => Eq (TableRow id)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesShow id => Show (TableRow id)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesTabletableHeaderRows :: [TableRow id]tableBodyRows :: [TableRow id]Functor TableDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesFoldable TableDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesTraversable TableDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesEq id => Eq (Table id)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesShow id => Show (Table id)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesDocEmptyDocAppend (DocH mod id) (DocH mod id)DocString StringDocParagraph (DocH mod id)DocIdentifier idDocIdentifierUnchecked modA qualified identifier that couldn't be resolved.
DocModule (ModLink (DocH mod id))A link to a module, with an optional label.
DocWarning (DocH mod id)This constructor has no counterpart in Haddock markup.
DocEmphasis (DocH mod id)DocMonospaced (DocH mod id)DocBold (DocH mod id)DocUnorderedList [DocH mod id]DocOrderedList [(Int, DocH mod id)]DocDefList [(DocH mod id, DocH mod id)]DocCodeBlock (DocH mod id)DocHyperlink (Hyperlink (DocH mod id))DocPic PictureDocMathInline StringDocMathDisplay StringDocAName StringA (HTML) anchor. It must not contain any spaces.
DocProperty StringDocExamples [Example]DocHeader (Header (DocH mod id))DocTable (Table (DocH mod id))Bifoldable DocHDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesBifunctor DocHDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesBitraversable DocHDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesFunctor (DocH mod)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesFoldable (DocH mod)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesTraversable (DocH mod)Defined in haddock-library-1.11.0 · Documentation.Haddock.Types(Eq id, Eq mod) => Eq (DocH mod id)Defined in haddock-library-1.11.0 · Documentation.Haddock.Types(Show id, Show mod) => Show (DocH mod id)Defined in haddock-library-1.11.0 · Documentation.Haddock.TypesEnum NamespaceDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesEq NamespaceDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesOrd NamespaceDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesShow NamespaceDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesRender the a namespace into the same format it was initially parsed.
DocMarkupH is a set of instructions for marking up documentation.
In fact, it's really just a mapping from Doc to some other
type [a], where [a] is usually the type of the output (HTML, say).
Use markup to apply a DocMarkupH to
a DocH.
MarkupmarkupEmpty :: amarkupString :: String -> amarkupParagraph :: a -> amarkupAppend :: a -> a -> amarkupIdentifier :: id -> amarkupIdentifierUnchecked :: mod -> amarkupModule :: ModLink a -> amarkupWarning :: a -> amarkupEmphasis :: a -> amarkupBold :: a -> amarkupMonospaced :: a -> amarkupUnorderedList :: [a] -> amarkupOrderedList :: [(Int, a)] -> amarkupDefList :: [(a, a)] -> amarkupCodeBlock :: a -> amarkupHyperlink :: Hyperlink a -> amarkupAName :: String -> amarkupPic :: Picture -> amarkupMathInline :: String -> amarkupMathDisplay :: String -> amarkupProperty :: String -> amarkupExample :: [Example] -> amarkupHeader :: Header a -> amarkupTable :: Table a -> a