With 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.
Modulehaddock-library-1.11.0Haskell2010
Documentation.Haddock.Types
Exposes documentation data types used for (some) of Haddock.
- 15 types
- 3 values
- Packagehaddock-library-1.11.0
- Exports18
- LanguageHaskell2010
- LicenceBSD-2-Clause
- SourceTypes.hs
Instances8Bifoldable, Bifunctor, Bitraversable, Functor, Foldable, Traversable, …
Bifoldable MetaDocDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesNOTE: Only defined for
base >= 4.10.0Bifunctor MetaDocDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesNOTE: Only defined for
base >= 4.8.0Bitraversable MetaDocDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesNOTE: Only defined for
base >= 4.10.0Functor (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.Types
Constructors
Instances5Functor, Foldable, Traversable, Eq, Show
Functor 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.Types
Constructors
ModLinkmodLinkName :: StringmodLinkLabel :: Maybe id
Instances5Functor, Foldable, Traversable, Eq, Show
Functor 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.Types
Constructors
Constructors
HeaderheaderLevel :: Intbetween 1 and 6 inclusive
headerTitle :: id
Instances5Functor, Foldable, Traversable, Eq, Show
Functor 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.Types
Constructors
Constructors
Instances5Functor, Foldable, Traversable, Eq, Show
Functor 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.Types
Constructors
TableRowtableRowCells :: [TableCell id]
Instances5Functor, Foldable, Traversable, Eq, Show
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.Types
Constructors
TabletableHeaderRows :: [TableRow id]tableBodyRows :: [TableRow id]
Instances5Functor, Foldable, Traversable, Eq, Show
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.Types
Constructors
DocEmptyDocAppend (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))
Instances8Bifoldable, Bifunctor, Bitraversable, Functor, Foldable, Traversable, …
Bifoldable DocHDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesNOTE: Only defined for
base >= 4.10.0Bifunctor DocHDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesNOTE: Only defined for
base >= 4.8.0Bitraversable DocHDefined in haddock-library-1.11.0 · Documentation.Haddock.TypesNOTE: Only defined for
base >= 4.10.0Functor (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.Types
Instances4Enum, Eq, Ord, Show
Enum 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.Types
Render 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.
Constructors
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