aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Insert a space between module link and descriptionMateusz Kowalczyk2014-02-101-1/+1
| | | | Fixes Haddock Trac #277.
* Document module header.Mateusz Kowalczyk2014-02-091-8/+62
| | | | Fixes Haddock Trac #270.
* Correct whitespace in ‘hidden’ test for <+> changeMateusz Kowalczyk2014-01-301-4/+4
|
* Handle infix vs prefix names correctly everywhere, by explicitly specifying ↵Dr. ERDI Gergo2014-01-315-59/+69
| | | | | | the context The basic idea is that "a" and "+" are either pretty-printed as "a" and "(+)" or "`a`" and "+"
* Update testsMateusz Kowalczyk2014-01-303-3/+3
| | | | | This updates tests due to Haddock Trac #271 fix and due to removal of TypeHoles as an extension from GHC.
* Fix @ code blocksMateusz Kowalczyk2014-01-302-0/+9
| | | | | | 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.
* <+>: Don't insert a space when concatenating empty nodesDr. ERDI Gergo2014-01-3124-225/+227
|
* Update CPP check for __GLASGOW_HASKELL__Austin Seipp2014-01-291-1/+1
| | | | Signed-off-by: Austin Seipp <austin@well-typed.com>
* Support for -XPatternSynonymsDr. ERDI Gergo2014-01-198-33/+156
| | | | Signed-off-by: Austin Seipp <austin@well-typed.com>
* Fixes #271Mateusz Kowalczyk2014-01-132-1/+3
| | | | Signed-off-by: Austin Seipp <austin@well-typed.com>
* Update maintainerMateusz Kowalczyk2014-01-121-1/+1
|
* Update documentation.Mateusz Kowalczyk2014-01-122-76/+271
|
* Allow escaping in URLs and pictures.Mateusz Kowalczyk2014-01-123-143/+190
| | | | | | | | | 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-1210-89/+613
| | | | | | | | | | | | | | | | | 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
* Bump interface versionMateusz Kowalczyk2014-01-122-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were some breaking changes over the last few patches so we bump the interface version. This causes a big problem with testing: 1. To generate cross package docs, we first need to generate docs for the package used. 2. To generate package docs with new interface version, we need to use Haddock which has the version bumped. 3. To get Haddock with the version bump, we first need to test cross package docs 4. GOTO 1 So the problem is the chicken and the egg problem. It seems that the only solution would be to generate some interface files on the fly but it is non-trivial. To run this test, you'll have to: * build Haddock without the test (make sure everything else passes) * rebuild the packages used in the test with your shiny new binary making sure they are visible to Haddock * remove the ‘_hidden’ suffix and re-run the tests Note: because the packages currently used for this test are those provided by GHC, it's probably non-trivial to just re-build them. Preferably something less tedious to rebuild should be used and something that is not subject to change.
* Per-module extension flags and language listing.Mateusz Kowalczyk2014-01-1212-48/+209
| | | | | | | | | | | | | Any extensions that are not enabled by a used language (Haskell2010 &c) will be shown. Furthermore, any implicitly enabled are also going to be shown. While we could eliminate this either by using the GHC API or a dirty hack, I opted not to: if a user doesn't want the implied flags to show, they are recommended to use enable extensions more carefully or individually. Perhaps this will encourage users to not enable the most powerful flags needlessly. Enabled with show-extensions. Conflicts: src/Haddock/InterfaceFile.hs
* Allow for headings inside function documentation.Mateusz Kowalczyk2014-01-129-8/+89
| | | | | | | | | | | | | 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-1215-14/+244
| | | | | | | Conflicts: src/Haddock/Backends/Hoogle.hs src/Haddock/Interface/Rename.hs src/Haddock/Parser.hs
* Update acceptance testsSimon Hengel2014-01-121-2/+8
|
* Fix totality, unicode, examples, paragraph parsingSimon Hengel2014-01-1248-1190/+871
| | | | | | | | 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-1264-385/+272
| | | | We also check that we have parsed everything with endOfInput.
* Rename Haddock.ParseSpec to Haddock.ParserSpecSimon Hengel2014-01-123-11/+3
|
* One pass parser and tests.Mateusz Kowalczyk2014-01-1220-662/+986
| | | | | | | | 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 ByteString version of AttoparsecMateusz Kowalczyk2014-01-1211-18/+2034
|
* Fix warnings in test helperSimon Hengel2014-01-121-0/+16
|
* Some code simplification by using traverseSimon Hengel2014-01-122-52/+9
|
* Adapt to small change in Pretty's exportsSimon Peyton Jones2014-01-101-3/+3
|
* Track changes in HsSpliceTy data constructorSimon Peyton Jones2013-11-251-1/+1
|
* Bump versionSimon Hengel2013-11-1061-73/+77
|
* Update HTML testsSimon Hengel2013-11-094-0/+275
|
* Don't consider StaticFlags when parsing arguments.Austin Seipp2013-10-091-12/+17
| | | | | | | | | | | Instead, discard any static flags before parsing the command line using GHC's DynFlags parser. See http://ghc.haskell.org/trac/ghc/ticket/8276 Based off a patch from Simon Hengel. Signed-off-by: Austin Seipp <austin@well-typed.com>
* Print missing documentation. Fixes #258.Mateusz Kowalczyk2013-09-182-6/+33
|
* Fixes #5Mateusz Kowalczyk2013-09-181-0/+11
|
* Fallback to ./resources when Cabal data is not foundSimon Hengel2013-09-181-2/+11
| | | | (so that themes are found during development)
* Add new field to DynFlagsMateusz Kowalczyk2013-09-181-0/+1
|
* Fixes #256Mateusz Kowalczyk2013-09-181-1/+8
| | | | | We inject -dynamic-too into flags before we run all our actions in the GHC monad.
* Fixes #231Mateusz Kowalczyk2013-09-183-3/+6
|
* Add test helperSimon Hengel2013-09-182-3/+167
|
* Add missing `traverse` method for `GenLocated`Herbert Valerio Riedel2013-09-181-1/+1
| | | | | | | As `Traversable` needs at least one of `traverse` or `sequenceA` to be overridden. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Revision to reflect new role annotation syntax in GHC.Richard Eisenberg2013-09-176-14/+12
|
* Update Git repo URL in `.cabal` fileHerbert Valerio Riedel2013-09-111-1/+1
|
* Fix AMP warningsDavid Luposchainsky2013-09-081-0/+8
| | | | Signed-off-by: Austin Seipp <aseipp@pobox.com>
* Use Hspec instead of nanospecMateusz Kowalczyk2013-09-033-134/+1
| | | | | | This is motivated by the fact that Haddock tests are not ran by the GHC's ‘validate’ script so we're pretty liberal on dependencies in that area. Full Hspec gives us some nice features such as Quickcheck integration.
* Fixes #253Mateusz Kowalczyk2013-09-023-2/+28
|
* LaTeX tests setupMateusz Kowalczyk2013-08-278-0/+309
|
* Fix ticket #247.Mateusz Kowalczyk2013-08-271-2/+6
| | | | | I do the same thing that the XHTML backend does: give these no special treatment and just act as if they are regular functions.
* Add spec tests.Mateusz Kowalczyk2013-08-252-25/+383
| | | | | This adds tests for all elements we can create during regular parsing. This also adds tests for text with unicode in it.
* Update tests.David Waern2013-08-091-4/+16
|
* Bump interface file version.David Waern2013-08-041-2/+2
|
* Output Copright and License keys in Xhtml backend.Mathieu Boespflug2013-08-044-26/+38
| | | | | | | This information is as relevant in the documentation as it is in the source files themselves. Signed-off-by: David Waern <david.waern@gmail.com>