diff options
author | Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> | 2013-09-03 01:29:27 +0100 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-01-12 14:48:35 -0600 |
commit | b11f371fdc9197cb45a6dafbcc0b095273d6614f (patch) | |
tree | 47dcee8f16e17903dfa059ed9236f276d6cdf1b0 /src/Haddock/Interface/LexParseRn.hs | |
parent | ef9aa98d6ccbe79888c501f94c9aa6688520c28e (diff) |
Allow for headings inside function documentation.
LaTeX will treat the h3-h6 headings the same as we'd have to hack the
style file heavily otherwise and it would make the headings tiny
anyway.
Hoogle upstream said they will put in the functionality on their end.
Conflicts:
src/Haddock/Interface/Rename.hs
src/Haddock/Types.hs
test/Haddock/ParserSpec.hs
Diffstat (limited to 'src/Haddock/Interface/LexParseRn.hs')
-rw-r--r-- | src/Haddock/Interface/LexParseRn.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Haddock/Interface/LexParseRn.hs b/src/Haddock/Interface/LexParseRn.hs index 041b5be1..73f2c165 100644 --- a/src/Haddock/Interface/LexParseRn.hs +++ b/src/Haddock/Interface/LexParseRn.hs @@ -125,6 +125,7 @@ rename dflags gre = rn DocExamples e -> DocExamples e DocEmpty -> DocEmpty DocString str -> DocString str + DocHeader (Header l t) -> DocHeader $ Header l (rn t) dataTcOccs' :: RdrName -> [RdrName] -- If the input is a data constructor, return both it and a type |