- Mar 11, 2014
-
-
Niklas Haas authored
-
Niklas Haas authored
This resolves fixity information not appearing across package borders. The binary file version has been increased accordingly.
-
- Mar 10, 2014
-
-
Mateusz Kowalczyk authored
-
- Mar 09, 2014
-
-
Niklas Haas authored
Identical fixities declared for the same line should now render using syntax like: infix 4 <, >=, >, <=
-
Niklas Haas authored
This adds a new type of source code link, to a specific line rather than a specific declaration/name - this is used to link to the location of a TH splice that defines a certain name. Rather hefty changes throughout and still one unresolved issue (the line URLs aren't parsed from the third form of --read-interface which means they're currently restricted to same-interface links). Not sure if this issue is really worth all the hassle, especially since we could just use line links in general. This commit also contains some cleanup/clarification of the types in Haddock.Backends.Xhtml.Decl and shortens some overlong lines in the process. Notably, the Bool parameter was replaced by a Unicode type synonym to help clarify its presence in type signatures.
-
Niklas Haas authored
This lets you override them using eg. cabal haddock --haddock-options, which can come in handy if you want to use a different layout or URL for your source code links than cabal-install generates.
-
Niklas Haas authored
They appear in the same position due to the float: right attribute but now they're always at the top of the box instead of at the bottom.
-
- Mar 08, 2014
-
-
Niklas Haas authored
Affects functions, type synonyms, type families, class names, data type names, constructors, data families, associated TFs/DFs, type synonyms, pattern synonyms and everything else I could think of.
-
- Feb 27, 2014
-
-
Mateusz Kowalczyk authored
See Haddock Trac #195. We now change this behaviour to only rendering the documentation attached to the first instance of a duplicate field. Perhaps we could improve this by rendering the first instance that has documentation attached to it but for now, we'll stick with this.
-
- Feb 24, 2014
-
-
Mateusz Kowalczyk authored
-
Mateusz Kowalczyk authored
Fixes Haddock Trac #267.
-
- Feb 23, 2014
-
-
Niklas Haas authored
This test actually tests what #260 originally reported - I omitted the RankNTypes scenario from the original fix because I realized it's not relevant to the underlying issue and indeed, this renders as intended now. Still good to have more tests.
-
Niklas Haas authored
This drops them to the new precedence pREC_CTX, which makes single eqaulity constraints show up as (a ~ b) => ty, in line with GHC's rendering. Additional tests added to make sure other type operators render as intended. Current behavior matches GHC
-
Niklas Haas authored
This introduces a new precedence level for single contexts (because implicit param contexts always need parens around them, but other types of contexts don't necessarily, even when alone)
-
Mateusz Kowalczyk authored
-Wall complains
-
Mateusz Kowalczyk authored
The parsing of these seems to have been fixed by GHC folk and it now renders differently. IMHO it now renders in a better way so I'm updating the test to reflect this.
-
- Feb 22, 2014
-
-
Simon Hengel authored
-
Niklas Haas authored
This makes bird tracks in the form > foo > bar > bat parse as if they had been written as >foo >bar >bat ie. without the leading whitespace in front of every line. Ideally we also want to look into how leading whitespace affects code blocks written using the @ @ syntax, which are currently unaffected by this patch.
-
- Feb 19, 2014
-
-
Mateusz Kowalczyk authored
This deals with what I imagine was an ancient TODO and makes it much clearer what the argument actually does rather than having the user chase down the comment.
-
- Feb 15, 2014
-
-
These should show up in every place where the class is visible, and indeed they do right now. Signed-off-by:
Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
-
- Feb 13, 2014
-
-
Mateusz Kowalczyk authored
This fixes the ‘Missing documentation for…’ message for modules with 100% coverage.
-
I have no idea what this was doing lying around here, and due to the usage of tuples it's actually slower, too. Signed-off-by:
Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
-
- Feb 11, 2014
-
-
This just tests various stuff including poly-kinded patterns and operator patterns to make sure the rendering isn't broken. Signed-off-by:
Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
-
This now displays them as (==) k a b c ... to mirror GHC's behavior, instead of the old (k == a) b c ... which was just wrong. Signed-off-by:
Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
-
This adds support for type/data families with their respective instances, as well as closed type families and associated type/data families. Signed-off-by:
Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
-
- Feb 10, 2014
-
-
Mateusz Kowalczyk authored
This is briefly related to Haddock Trac #249 and employs effectively the suggested fix _but_ it doesn't actually fix the reported issue. This commit simply makes copying the full line a bit less of a pain.
-
Mateusz Kowalczyk authored
Fixes Haddock Trac #277.
-
- Feb 09, 2014
-
-
Mateusz Kowalczyk authored
Fixes Haddock Trac #270.
-
- Jan 30, 2014
-
-
Mateusz Kowalczyk authored
-
Gergő Érdi authored
The basic idea is that "a" and "+" are either pretty-printed as "a" and "(+)" or "`a`" and "+"
-
This updates tests due to Haddock Trac #271 fix and due to removal of TypeHoles as an extension from GHC.
-
In cases where we had some horizontal space before the closing ‘@’, the parser would not accept the block as a code block and we'd get ugly output.
-
Gergő Érdi authored
-
- Jan 29, 2014
-
-
Austin Seipp authored
Signed-off-by:
Austin Seipp <austin@well-typed.com>
-
- Jan 19, 2014
-
-
Gergő Érdi authored
Signed-off-by:
Austin Seipp <austin@well-typed.com>
-
- Jan 13, 2014
-
-
Mateusz Kowalczyk authored
Signed-off-by:
Austin Seipp <austin@well-typed.com>
-
- Jan 12, 2014
-
-
Mateusz Kowalczyk authored
-
Mateusz Kowalczyk authored
-
Mateusz Kowalczyk authored
Some tests were moved under parseString as they weren't about paragraph level markup. Conflicts: src/Haddock/Parser.hs test/Haddock/ParserSpec.hs
-
Mateusz Kowalczyk authored
The nesting rules are similar to Markdown's with the exception that we can not simply indent the first line of a hard wrapped indented paragraph and have it treated as if it was fully indented. The reason is differences in markup as some of our constructs care about whitespace while others just swallow everything up so it's just a lot easier to not bother with it rather than making arbitrary rules. Note that we now drop trailing for string entities inside of lists. They weren't needed and it makes the output look uniform whether we use a single or double newline between list elements. Conflicts: src/Haddock/Parser.hs test/Haddock/ParserSpec.hs
-