aboutsummaryrefslogtreecommitdiff
path: root/test/Haddock
Commit message (Collapse)AuthorAgeFilesLines
* Fix @ code blocksMateusz Kowalczyk2014-01-301-0/+8
| | | | | | 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.
* Allow escaping in URLs and pictures.Mateusz Kowalczyk2014-01-121-138/+170
| | | | | | | | | Some tests were moved under parseString as they weren't about paragraph level markup. Conflicts: src/Haddock/Parser.hs test/Haddock/ParserSpec.hs
* Allow for nesting of paragraphs under lists.Mateusz Kowalczyk2014-01-121-42/+113
| | | | | | | | | | | | | | | | | 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
* Allow for headings inside function documentation.Mateusz Kowalczyk2014-01-121-0/+19
| | | | | | | | | | | | | 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
* Support for bold.Mateusz Kowalczyk2014-01-122-1/+70
| | | | | | | Conflicts: src/Haddock/Backends/Hoogle.hs src/Haddock/Interface/Rename.hs src/Haddock/Parser.hs
* Fix totality, unicode, examples, paragraph parsingSimon Hengel2014-01-121-465/+453
| | | | | | | | 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.
* Don't append newline to parseString inputSimon Hengel2014-01-121-41/+36
| | | | We also check that we have parsed everything with endOfInput.
* Rename Haddock.ParseSpec to Haddock.ParserSpecSimon Hengel2014-01-121-1/+1
|
* One pass parser and tests.Mateusz Kowalczyk2014-01-122-111/+336
| | | | | | | | 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 test helperSimon Hengel2013-09-181-3/+1
|
* Add spec tests.Mateusz Kowalczyk2013-08-251-23/+358
| | | | | This adds tests for all elements we can create during regular parsing. This also adds tests for text with unicode in it.
* Move unit tests to /test directorySimon Hengel2012-10-151-0/+81