diff options
author | simonmar <unknown> | 2002-05-15 13:03:02 +0000 |
---|---|---|
committer | simonmar <unknown> | 2002-05-15 13:03:02 +0000 |
commit | 1554c09a07c32be5f506a51f06ef5f3fdc41443b (patch) | |
tree | dc91240f842ab140a7619ed50dda6629436f2dc0 /html | |
parent | 2d1d5218125feb9ea093b19ae8a9b7d2dff6fc15 (diff) |
[haddock @ 2002-05-15 13:03:01 by simonmar]
Reworking of the internals to support documenting function arguments
(the Most Wanted new feature by the punters).
The old method of keeping parsed documentation in a Name -> Doc
mapping wasn't going to cut it for anntations on type components,
where there's no name to attach the documentation to, so I've moved to
storing all the documentation in the abstract syntax. Previously some
of the documentation was left in the abstract syntax by the parser,
but was later extracted into the mapping.
In order to avoid having to parameterise the abstract syntax over the
type of documentation stored in it, we have to parse the documentation
at the same time as we parse the Haskell source (well, I suppose we
could store 'Either String Doc' in the HsSyn, but that's clunky). One
upshot is that documentation is now parsed eagerly, and documentation
parse errors are fatal (but have better line numbers in the error
message).
The new story simplifies matters for the code that processes the
source modules, because we don't have to maintain the extra Name->Doc
mapping, and it should improve efficiency a little too.
New features:
- Function arguments and return values can now have doc annotations.
- If you refer to a qualified name in a doc string, eg. 'IO.putStr',
then Haddock will emit a hyperlink even if the identifier is not
in scope, so you don't have to make sure everything referred to
from the documentation is imported.
- several bugs & minor infelicities fixed.
Diffstat (limited to 'html')
-rw-r--r-- | html/haddock.css | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/html/haddock.css b/html/haddock.css index 76188a5b..65180b61 100644 --- a/html/haddock.css +++ b/html/haddock.css @@ -1,6 +1,7 @@ BODY { background-color: #ffffff; - color: #000000 + color: #000000; + font-family: sans-serif; } TD.topbar { @@ -19,7 +20,8 @@ TD.topbut { padding-right: 5px; border-left-width: 1px; border-left-color: #ffffff; - border-left-style: solid + border-left-style: solid; + white-space: nowrap; } TD.topbut A:link { color: #ffffff @@ -52,7 +54,9 @@ TD.synopsis { TD.decl { padding: 2px; background-color: #f0f0f0; - font-family: monospace + font-family: monospace; + white-space: nowrap; + vertical-align: top; } TD.condecl { padding-left: 10px } @@ -60,11 +64,19 @@ TD.recfield { padding-left: 20px } TD.doc { padding-top: 2px; - font-family: sans-serif; padding-left: 10px } -TD.cbody { +TD.ndoc { + padding: 2px; + } + +TD.rdoc { + padding: 2px; + padding-left: 10px; + } + +TD.body { padding-left: 10px } @@ -90,27 +102,23 @@ TD.botbar A:hover { TD.section1 { padding-top: 15px; - font-family: sans-serif; font-weight: bold; font-size: 150% } TD.section2 { padding-top: 10px; - font-family: sans-serif; font-weight: bold; font-size: 130% } TD.section3 { padding-top: 5px; - font-family: sans-serif; font-weight: bold; font-size: 110% } TD.section4 { - font-family: sans-serif; font-weight: bold; font-size: 100% } |