aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock.hs
Commit message (Collapse)AuthorAgeFilesLines
* Move Haddock API to a separate packageSimon Hengel2014-08-221-2/+1
|
* Revert "Track GHC PackageId to PackageKey renaming."Mateusz Kowalczyk2014-08-141-5/+5
| | | | This reverts commit 8ac42d3327473939c013551750425cac191ff0fd.
* Track GHC PackageId to PackageKey renaming.Edward Z. Yang2014-07-211-5/+5
| | | | | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Conflicts: src/Haddock/Interface/Create.hs
* Remove no longer necessary parser error handling.Mateusz Kowalczyk2014-05-061-5/+2
| | | | | 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-1/+1
| | | | | | | | | | 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.
* Drop needless --split-objs which slows us down.Mateusz Kowalczyk2014-03-221-9/+8
| | | | Involves tiny cleanup of all the dynflag bindings. Fixes #292.
* Style onlyMateusz Kowalczyk2014-03-131-32/+28
|
* Always read in prologue files as UTF8 (#286).Mateusz Kowalczyk2014-03-131-5/+9
|
* Differentiate between TH splices (line-links) and regular namesNiklas Haas2014-03-091-2/+4
| | | | | | | | | | | | | | | | | 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.
* Fix totality, unicode, examples, paragraph parsingSimon Hengel2014-01-121-1/+1
| | | | | | | | 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-4/+2
| | | | | | | | 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.
* 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>
* 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)
* 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-181-1/+2
|
* Merge branch 'ghc-7.6' into ghc-7.6-merge-2Kazu Yamamoto2013-02-011-9/+9
| | | | | | | | | | | | | | Conflicts: haddock.cabal src/Haddock/Interface/AttachInstances.hs src/Haddock/Interface/Create.hs src/Haddock/Interface/LexParseRn.hs src/Haddock/InterfaceFile.hs src/Haddock/Types.hs Only GHC HEAD can compile this. GHC 7.6.x cannot compile this. Some test fail.
* Minor code simplificationSimon Hengel2012-10-131-2/+1
|
* Increase code localitySimon Hengel2012-10-131-11/+5
|
* Minor code simplificationSimon Hengel2012-10-131-4/+4
|
* Remove unused MonadFix constraintSimon Hengel2012-10-131-7/+4
|
* Export Haddock's main entry point from librarySimon Hengel2012-10-041-0/+461