haddock-library-1.4.1: Library exposing some functionality of Haddock.

Copyright(c) Simon Marlow 2003-2006, David Waern 2006-2009, Mateusz Kowalczyk 2013
LicenseBSD-like
Maintainerhaddock@projects.haskellorg
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Documentation.Haddock.Types

Description

Exposes documentation data types used for (some) of Haddock.

Synopsis

Documentation

newtype Meta Source

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.

Constructors

Meta 

data MetaDoc mod id Source

Constructors

MetaDoc 

Fields

_meta :: Meta
 
_doc :: DocH mod id
 

Instances

Functor (MetaDoc mod) Source 
Foldable (MetaDoc mod) Source 
Traversable (MetaDoc mod) Source 
(Eq mod, Eq id) => Eq (MetaDoc mod id) Source 
(Show mod, Show id) => Show (MetaDoc mod id) Source 

overDoc :: (DocH a b -> DocH c d) -> MetaDoc a b -> MetaDoc c d Source

type Version = [Int] Source

data Header id Source

Constructors

Header 

Fields

headerLevel :: Int
 
headerTitle :: id