aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Interface/LexParseRn.hs
Commit message (Collapse)AuthorAgeFilesLines
* Remove no longer necessary parser error handling.Mateusz Kowalczyk2014-05-061-33/+20
| | | | | We can now drop some Maybe tests and even lets us strip an error handling monad away in a few places.
* Move parser + parser tests out to own package.Mateusz Kowalczyk2014-05-051-11/+9
| | | | | | | | | | 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-1/+1
| | | | | We have to generalise the Doc (now DocH) slightly to remove the dependency on GHC-supplied type.
* Per-module extension flags and language listing.Mateusz Kowalczyk2014-01-121-3/+11
| | | | | | | | | | | | | 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-121-0/+1
| | | | | | | | | | | | | 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-121-0/+1
| | | | | | | Conflicts: src/Haddock/Backends/Hoogle.hs src/Haddock/Interface/Rename.hs src/Haddock/Parser.hs
* Fix totality, unicode, examples, paragraph parsingSimon Hengel2014-01-121-2/+2
| | | | | | | | 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-6/+5
| | | | | | | | 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.
* Fixes #253Mateusz Kowalczyk2013-09-021-2/+16
|
* Add markup support for propertiesKazu Yamamoto2012-10-091-0/+1
|
* Improve haddock memory usageIan Lynagh2012-08-131-1/+4
|
* Merge branch 'dev' of https://github.com/sol/haddock into ghc-7.6David Waern2012-07-231-1/+1
|\ | | | | | | | | Conflicts: src/Haddock/InterfaceFile.hs
| * Add an optional label to URLsSimon Hengel2012-05-271-1/+1
| |
* | Forward port changes from stable.Paolo Capriotti2012-07-191-40/+38
|\|
| * Fix reporting of modules safe haskell mode (#5989)David Terei2012-04-061-4/+4
| |
| * Clean up some code from last SoC project.David Waern2012-02-041-41/+37
| |
| * Add DocWarning to DocSimon Hengel2012-02-041-0/+1
| | | | | | | | | | The Xhtml backend has special markup for that, Hoogle and LaTeX reuse what we have for DocEmphasis.
* | Follow changes in GHCIan Lynagh2012-06-121-12/+13
| |
* | Follow changes in GHCIan Lynagh2012-06-121-1/+1
| |
* | Fix reporting of modules safe haskell mode (#5989)David Terei2012-04-041-4/+4
|/
* Cleanup.David Waern2011-11-261-21/+79
|
* Add safe haskell indication to haddock outputDavid Terei2011-10-121-11/+16
|
* Position the module header the same way everywhereDavid Waern2010-05-131-2/+0
| | | | Silly, but nice with some consistency :-)
* Fix #112David Waern2010-04-101-12/+12
| | | | | | | | No link was generated for 'Addr#' in a doc comment. The reason was simply that the identifier didn't parse. We were using parseIdentifier from the GHC API, with a parser state built from 'defaultDynFlags'. If we pass the dynflags of the module instead, the right options are turned on on while parsing the identifer (in this case -XMagicHash), and the parse succeeds.
* Propagate source positions from Lex.x to Parse.yDavid Waern2010-04-071-1/+1
|
* Move H.Interface.Parse/Lex to H.Parse/LexDavid Waern2009-11-281-4/+4
| | | | These are not just used to build Interfaces.
* Rename HsDoc back into DocDavid Waern2009-11-281-7/+7
|
* Remove cruft due to compatibility with older GHCsDavid Waern2009-11-281-15/+1
|
* hlint policeDavid Waern2009-11-141-2/+1
|
* Move doc parsing/lexing into Haddock for ghc>=6.11Isaac Dupree2009-08-231-0/+89