aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Doc.hs
Commit message (Collapse)AuthorAgeFilesLines
* Move parser + parser tests out to own package.Mateusz Kowalczyk2014-05-051-44/+7
| | | | | | | | | | We move some types out that are necessary as well and then re-export and specialise them in the core Haddock. Reason for moving out spec tests is that if we're working on the parser, we can simply work on that and we can ignore the rest of Haddock. The downside is that it's a little inconvenient if at the end of the day we want to see that everything passes.
* Prepare modules for parser split.Mateusz Kowalczyk2014-05-051-4/+4
| | | | | We have to generalise the Doc (now DocH) slightly to remove the dependency on GHC-supplied type.
* Allow for nesting of paragraphs under lists.Mateusz Kowalczyk2014-01-121-0/+2
| | | | | | | | | | | | | | | | | 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
* Fix totality, unicode, examples, paragraph parsingSimon Hengel2014-01-121-47/+10
| | | | | | | | Also simplify specs and parsers while we're at it. Some parsers were made more generic. This commit is a part of GHC pre-merge squash, email fuuzetsu@fuuzetsu.co.uk if you need the full commit history.
* One pass parser and tests.Mateusz Kowalczyk2014-01-121-2/+18
| | | | | | | | We remove the HTML test as it is no longer necessary. We cover the test case in spec tests and other HTML tests but keeping this around fails: this is because the new parser has different semantics there. In fact, I suspect the original behaviour was a bug that wasn't caught/fixed but simply included as-is during the testing.
* Add spec tests.Mateusz Kowalczyk2013-08-251-2/+25
| | | | | This adds tests for all elements we can create during regular parsing. This also adds tests for text with unicode in it.
* Position the module header the same way everywhereDavid Waern2010-05-131-0/+1
| | | | Silly, but nice with some consistency :-)
* Rename HsDoc back into DocDavid Waern2009-11-281-0/+64