aboutsummaryrefslogtreecommitdiff
path: root/haddock-library/src/Documentation
diff options
context:
space:
mode:
authorSimon Hengel <sol@typeful.net>2014-11-02 12:19:38 +0800
committerSimon Hengel <sol@typeful.net>2014-11-03 09:34:20 +0800
commit122fe6edaeae55e77d606e6d57aa1904bbfb55c4 (patch)
tree58fa9ffca7e586963efece9f9046edb2890d44a2 /haddock-library/src/Documentation
parentaf85d14f001cf4c2976ee659ec04101d6b054a4d (diff)
Allow an optional colon after the closing bracket of definition lists
This is to disambiguate them from markdown links and will be require with a future release.
Diffstat (limited to 'haddock-library/src/Documentation')
-rw-r--r--haddock-library/src/Documentation/Haddock/Parser.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/haddock-library/src/Documentation/Haddock/Parser.hs b/haddock-library/src/Documentation/Haddock/Parser.hs
index ff03c7bb..99010897 100644
--- a/haddock-library/src/Documentation/Haddock/Parser.hs
+++ b/haddock-library/src/Documentation/Haddock/Parser.hs
@@ -294,7 +294,7 @@ definitionList :: Parser (DocH mod Identifier)
definitionList = DocDefList <$> p
where
p = do
- label <- "[" *> (parseStringBS <$> takeWhile1 (`notElem` "]\n")) <* "]"
+ label <- "[" *> (parseStringBS <$> takeWhile1 (`notElem` "]\n")) <* ("]" <* optional ":")
c <- takeLine
(cs, items) <- more p
let contents = parseString . dropNLs . unlines $ c : cs