aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Types.hs
diff options
context:
space:
mode:
authorMathieu Boespflug <mathieu.boespflug@parsci.com>2013-05-20 11:56:28 +0200
committerDavid Waern <david.waern@gmail.com>2013-08-04 10:39:43 -0700
commitc33a0b2ef062ac19692a4b836d28d16b49aab995 (patch)
treeed1745e4dd3510a708df8b5a25d7662275fcfc0c /src/Haddock/Types.hs
parent34d2aa54b95e8d261dc325393893d06f6a085130 (diff)
Output Copright and License keys in Xhtml backend.
This information is as relevant in the documentation as it is in the source files themselves. Signed-off-by: David Waern <david.waern@gmail.com>
Diffstat (limited to 'src/Haddock/Types.hs')
-rw-r--r--src/Haddock/Types.hs18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/Haddock/Types.hs b/src/Haddock/Types.hs
index 181ea026..bd4f10fa 100644
--- a/src/Haddock/Types.hs
+++ b/src/Haddock/Types.hs
@@ -399,20 +399,24 @@ data DocMarkup id a = Markup
data HaddockModInfo name = HaddockModInfo
- { hmi_description :: (Maybe (Doc name))
- , hmi_portability :: (Maybe String)
- , hmi_stability :: (Maybe String)
- , hmi_maintainer :: (Maybe String)
- , hmi_safety :: (Maybe String)
+ { hmi_description :: Maybe (Doc name)
+ , hmi_copyright :: Maybe String
+ , hmi_license :: Maybe String
+ , hmi_maintainer :: Maybe String
+ , hmi_stability :: Maybe String
+ , hmi_portability :: Maybe String
+ , hmi_safety :: Maybe String
}
emptyHaddockModInfo :: HaddockModInfo a
emptyHaddockModInfo = HaddockModInfo
{ hmi_description = Nothing
- , hmi_portability = Nothing
- , hmi_stability = Nothing
+ , hmi_copyright = Nothing
+ , hmi_license = Nothing
, hmi_maintainer = Nothing
+ , hmi_stability = Nothing
+ , hmi_portability = Nothing
, hmi_safety = Nothing
}