aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock.hs
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master' into ghc-headalexbiehl2017-08-211-18/+29
|\
| * Provide --show-interface option to dump interfaces (#645)Alexander Biehl2017-08-061-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP: Provide --show-interface option to dump interfaces Like ghcs own --show-iface this flag dumps a binary interface file to stdout in a human (and machine) readable fashion. Currently it uses json as output format. * Fill all the jsonNull stubs * Rework Bifunctor instance of DocH, update changelog and documentation * replace changelog, bring DocMarkupH doc back * Update CHANGES.md * Update CHANGES.md * Move Control.Arrow up It would result in unused import if the Bifunctor instance is not generated.
| * Make haddock-library and haddock-api warning free (#626)Alex Biehl2017-05-301-6/+6
| |
| * Haddock: Fix broken lazy IO in prologue reading (#615)Alex Biehl2017-05-121-2/+3
| | | | | | | | | | We previously used withFile in conjunction with hGetContents. The list returned by the latter wasn't completely forced by the time we left the withFile block, meaning that we would try to read from a closed handle.
| * Improve error messageSergey Vinokurov2017-04-291-1/+1
| |
| * Travis: Use ghc-8.2.1 on masteralexbiehl2017-04-251-9/+16
| |
| * Prevent GHC API from doing optimization passes.Kyrill Briantsev2017-04-111-1/+1
| |
| * Merge branch 'ghc-head'Ben Gamari2017-03-101-13/+11
| |\
* | | Disable pattern match warnings (#628)Doug Wilson2017-06-031-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This disables the pattern match checker which can be very expensive in some cases. The disabled warnings include: * Opt_WarnIncompletePatterns * Opt_WarnIncompleteUniPatterns * Opt_WarnIncompletePatternsRecUpd * Opt_WarnOverlappingPatterns
* | | Haddock: Fix broken lazy IO in prologue reading (#615)Ben Gamari2017-05-121-2/+3
| | | | | | | | | | | | | | | We previously used withFile in conjunction with hGetContents. The list returned by the latter wasn't completely forced by the time we left the withFile block, meaning that we would try to read from a closed handle.
* | | Merge pull request #568 from awson/ghc-headAlex Biehl2017-03-231-1/+1
|\ \ \ | | | | | | | | Prevent GHC API from doing optimization passes.
| * | | Prevent GHC API from doing optimization passes.Kyrill Briantsev2017-01-121-1/+1
| | | |
* | | | Merge commit '240bc38b94ed2d0af27333b23392d03eeb615e82' into HEADBen Gamari2017-03-231-1/+1
|\ \ \ \ | | |/ / | |/| / | |_|/ |/| |
| * | do not create empty src directorySebastian Meric de Bellefon2016-06-221-1/+1
| | | | | | | | | | | | Fix #536.
* | | Kill remaining static flagsBen Gamari2017-02-021-12/+2
| |/ |/|
* | haddock-api: Don't use stdcall calling convention on 64-bit WindowsBen Gamari2016-12-091-1/+9
|/ | | | See GHC #12890.
* Use -fprint-unicode-syntax when --use-unicode is enabledBen Gamari2016-02-081-4/+7
| | | | | This allows GHC to render `*` as its Unicode representation, among other things.
* Make sure --mathjax affects all written HTML filesJoachim Breitner2016-01-191-1/+1
| | | | This fixes #475.
* Fix the documentation for haddock itself.Dominic Steinitz2015-12-211-2/+3
| | | | | | | | | | | | | | | Change notation and add support for inline math. Allow newlines in display math. Add a command line option for the mathjax url (you might want to use a locally installed version). Rebase tests because of extra url and version change. Respond to (some of the) comments. Fix warnings in InterfaceFile.hs
* Changes to compile with 8.0Matthew Pickering2015-12-141-1/+1
|
* s/PackageKey/UnitId/g and s/packageKey/unitId/gEdward Z. Yang2015-12-141-3/+3
| | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
* Create Process: removed PhaseFailedTamar Christina2015-12-141-5/+2
|
* Override source line flags when source hyperlinker is enabled.Łukasz Hanuszczak2015-08-021-2/+7
|
* Add support for hyperlinking modules in import lists.Łukasz Hanuszczak2015-07-061-1/+1
|
* Fix bug where not all module interfaces were added to source mapping.Łukasz Hanuszczak2015-07-051-2/+4
|
* Refactor source path mapping to use modules as indices.Łukasz Hanuszczak2015-07-051-10/+17
|
* Make Haddock generate warnings about potential misuse of hyperlinker.Łukasz Hanuszczak2015-07-041-0/+30
|
* Make hyperlinker respect pretty-printer flag and add documentation.Łukasz Hanuszczak2015-06-301-1/+1
|
* Make Haddock generate source for all interfaces (also hidden ones).Łukasz Hanuszczak2015-06-301-1/+1
|
* Add basic support for cross-package hyperlink generation.Łukasz Hanuszczak2015-06-301-1/+1
|
* Rewrite source generation to fixed links and directory structure.Łukasz Hanuszczak2015-06-301-6/+5
|
* Make external hyperlinks point to locations specified by source URLs.Łukasz Hanuszczak2015-06-301-1/+6
|
* Make source hyperlinker generate output in apropriate directory.Łukasz Hanuszczak2015-06-301-2/+8
|
* Add support for providing custom CSS files for hyperlinked source.Łukasz Hanuszczak2015-06-301-1/+2
|
* Create hyperlinker module and plug it into the Haddock pipeline.Łukasz Hanuszczak2015-06-301-0/+4
|
* Make the error encountered when a package can't be found moreBen Gamari2015-03-251-12/+21
| | | | | | user-friendly Closes #369
* --package-name and --package-version flagsMateusz Kowalczyk2015-01-221-3/+24
| | | | | | Used for --hoogle amongst other things. Now we need to teach cabal to use it. The situation is still a bit sub-par because if the flags aren't passed in, the crash will occur. Closes #353.
* Add missing import for standalone haddock-api packageLuite Stegeman2014-12-221-0/+1
|
* hide projectVersion from DynFlags since it clashes with ↵Luite Stegeman2014-12-191-1/+1
| | | | Haddock.Version.projectVersion
* Properly render package ID (not package key) in index, fixes #329.Edward Z. Yang2014-12-121-2/+2
| | | | | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Conflicts: haddock-api/src/Haddock/ModuleTree.hs
* Changes due to ghc api changes in package representationDuncan Coutts2014-12-121-5/+8
| | | | | | | | | | Also fix a bug with finding the package name and version given a module. This had become wrong due to the package key changes (it was very hacky in the first place). We now look up the package key in the package db to get the package info properly. Conflicts: haddock-api/src/Haddock.hs
* Revert "Merge branch 'reverts'"Mateusz Kowalczyk2014-12-121-5/+5
| | | | | | | | This reverts commit 5c93cc347773c7634321edd5f808d5b55b46301f, reversing changes made to 5b81a9e53894d2ae591ca0c6c96199632d39eb06. Conflicts: haddock-api/src/Haddock/Convert.hs
* Allow the parser to spit out meta-infoMateusz Kowalczyk2014-12-101-3/+6
| | | | | | | | | | | | | | | Currently we only use it only for ‘since’ annotations but with these patches it should be fairly simple to add new attributes if we wish to. Closes #26. It seems to work fine but due to 7.10 rush I don't have the chance to do more exhaustive testing right now. The way the meta is output (emphasis at the end of the whole comment) is fairly arbitrary and subject to bikeshedding. Note that this makes test for Bug310 fail due to interface version bump: it can't find the docs for base with this interface version so it fails. There is not much we can do to help this because it tests for ’built-in’ identifier, not something we can provide ourselves.
* Fix improper lazy IO usetreeowl2014-10-091-1/+1
| | | Make `getPrologue` force `parseParas dflags str` before returning. Without this, it will attempt to read from the file after it is closed, with unspecified and generally bad results.
* Move sources under haddock-api/srcMateusz Kowalczyk2014-08-231-0/+488