aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'ghc-head' with 'ghc-8.4'Herbert Valerio Riedel2018-05-0121-1018/+1388
|\
| * Match changes in GHC for TTGAlan Zimmerman2018-04-2713-299/+386
| |
| * Bump upper bound on base to < 4.13Ryan Scott2018-04-194-6/+6
| | | | | | | | See https://ghc.haskell.org/trac/ghc/ticket/15018.
| * Match GHC for TTG implemented on HsBinds, D4581Alan Zimmerman2018-04-1311-79/+86
| |
| * Match GHC changes for TTGAlan Zimmerman2018-04-0911-269/+343
| |
| * Match changes in GHC for D4199Alan Zimmerman2018-04-072-2/+3
| | | | | | | | Removing HasSourceText and SourceTextX classes.
| * Updates for #13324Ryan Scott2018-03-061-1/+1
| |
| * Haddock: support splitted include paths. (#689)Tamar Christina2018-02-191-1/+3
| |
| * Use withBinaryFilealexbiehl2018-02-181-1/+1
| |
| * QuickJump: Mitigate encoding problems on Windowsalexbiehl2018-02-181-4/+5
| | | | | | | | (cherry picked from commit 86292c54bfee2343aee84559ec01f1fc68f52231)
| * Merge remote-tracking branch 'harpocrates/fix/missing-orphan-instances' into ↵Ben Gamari2018-01-262-1/+15
| |\ | | | | | | | | | ghc-head
| | * Update the GblRdrEnv when processing modulesAlec Theriault2018-01-151-0/+14
| | | | | | | | | | | | | | | Without a complete environment, we will miss some instances that were encountered during typechecking.
| | * Pass to GHC visible modules for instance filteringAlec Theriault2018-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The GHC-side `getNameToInstancesIndex` filters out incorrectly some instances because it is not aware of what modules are visible. On the Haddock side, we need to pass in the modules we are processing. On the GHC side, we need to check against _those_ modules when checking if an instance is visible.
| * | Fix duplicate declarations and TypeFamilies specificsalexbiehl2018-01-201-17/+29
| | |
| * | extractDecl: Extract associated types correctly (#736)Alexander Biehl2018-01-191-11/+21
| | |
| * | Fix #732 (#733)Ryan Scott2018-01-191-2/+2
| | |
| * | Constructor and pattern synonym argument docs (#709)Alec Theriault2018-01-136-353/+595
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support Haddocks on constructor arguments This is in conjunction with https://phabricator.haskell.org/D4094. Adds support for rendering Haddock's on (non-record) constructor arguments, both for regular and GADT constructors. * Support haddocks on pattern synonym arguments It appears that GHC already parsed these - we just weren't using them. In the process of doing this, I tried to deduplicate some code around handling patterns. * Update the markup guide Add some information about the new support for commenting constructor arguments, and mention pattern synonyms and GADT-style constructors. * Overhaul LaTeX support for data/pattern decls This includes at least * fixing several bugs that resulted in invalid LaTeX * fixing GADT data declaration headers * overhaul handling of record fields * overhaul handling of GADT constructors * overhaul handling of bundled patterns * add support for constructor argument docs * Support GADT record constructors This means changes what existing HTML docs look like. As for LaTeX, looks like GADT records were never even supported. Now they are. * Clean up code/comments Made code/comments consistent between the LaTeX and XHTML backend when possible. * Update changelog * Patch post-rebase regressions * Another post-rebase change We want return values to be documentable on record GADT constructors.
| * Track changes to follow Trac #14529Simon Peyton Jones2017-12-078-153/+105
| | | | | | | | This tracks the refactoring of HsDecl.ConDecl.
| * Update changelogAlexander Biehl2017-12-061-1/+1
| |
| * Bump GHC versionBen Gamari2017-12-042-2/+2
| |
* | Replace 'attoparsec' with 'parsec' (#799)Alec Theriault2018-04-2517-2796/+363
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove attoparsec with parsec and start fixing failed parses * Make tests pass * Fix encoding issues The Haddock parser no longer needs to worry about bytestrings. All the internal parsing work in haddock-library happens over 'Text'. * Remove attoparsec vendor * Fix stuff broken in 'attoparsec' -> 'parsec' * hyperlinks * codeblocks * examples Pretty much all issues are due to attoparsec's backtracking failure behaviour vs. parsec's non-backtracking failure behaviour. * Fix small TODOs * Missing quote + Haddocks * Better handle spaces before/after paragraphs * Address review comments
* | Improve the Hoogle backend's treatment of type families (#808)Ryan Scott2018-04-243-6/+67
| | | | | | Fixes parts 1 and 2 of #806.
* | Add regression test for #413Ryan Scott2018-04-243-0/+22
| | | | | | | | Fixes #413.
* | Don't treat fixity signatures like declarationsalexbiehl2018-04-201-1/+1
| |
* | Travis: Build with ghc-8.4.2 (#793)Alexander Biehl2018-04-034-9/+9
| |
* | Clear search string on hide for #781 (#789)Jack Henahan2018-04-033-4/+4
| |
* | Bump haddock and haddock-api to 2.20.0alexbiehl2018-03-282-3/+3
| |
* | haddock-2.19.1, haddock-api-2.19.1, haddock-library-1.6.0alexbiehl2018-03-274-4/+10
| |
* | @since includes package name (#749)Alec Theriault2018-03-2717-266/+346
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Metadoc stores a package name This means that '@since' annotations can be package aware. * Get the package name the right way This should extract the package name for `@since` annotations the right way. I had to move `modulePackageInfo` around to do this and, in the process, I took the liberty to update it. Since it appears that finding the package name is something that can fail, I added a warning for this case. * Silence warnings * Hide package for local 'since' annotations As discussed, this is still the usual case (and we should avoid being noisy for it). Although this commit is large, it is basically only about threading a 'Maybe Package' from 'Haddock.render' all the way to 'Haddock.Backends.Xhtml.DocMarkup.renderMeta'. * Bump binary interface version * Add a '--since-qual' option This controls when to qualify since annotations with the package they come from. The default is always, but I've left an 'external' variant where only those annotations coming from outside of the current package are qualified. * Make ParserSpec work * Make Fixtures work * Use package name even if package version is not available The @since stuff needs only the package name passed in, so it makes sense to not be forced to pass in a version too.
* | Useful cost centres, timers and allocation counters (#785)Alexander Biehl2018-03-232-27/+53
| | | | | | | | | | | | | | | | | | * Add some useful cost-centres for profiling * Add withTiming for each haddock phase Invoking haddock with `--optghc=-ddump-timings` now shows the amount of time spent and the number of allocated bytes for each phase.
* | Prepare changelog for next releasealexbiehl2018-03-211-0/+4
| |
* | Show where instances are defined (#748)Alec Theriault2018-03-2124-112/+530
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Indicate source module of instances Above instance, we now also display a link to the module where the instance was defined. This is sometimes helpful in figuring out what to import. * Source module for type/data families too * Remove parens * Accept tests
* | Make a proper definition for the <link> parserSimon Jakobi2018-03-141-4/+6
| |
* | haddock-library.cabal: Clean up GHC optionsSimon Jakobi2018-03-141-6/+3
| |
* | fixtures: Prevent stdout bufferingSimon Jakobi2018-03-141-1/+4
| |
* | fixtures: Slightly unmangle outputSimon Jakobi2018-03-141-1/+1
| |
* | Add fixture test for inline linksSimon Jakobi2018-03-142-0/+7
| |
* | Add fixture test for linksSimon Jakobi2018-03-142-0/+6
| |
* | Add fixture test for definition listsSimon Jakobi2018-03-142-0/+2
| |
* | Readme: Update GHC version (#778)Simon Jakobi2018-03-141-2/+2
| |
* | extractDecl: Extract constructor patterns from data family instances (#776)Alexander Biehl2018-03-131-13/+26
| | | | | | | | | | | | * extractDecl: Allow extraction of data family instance constructors * extractDecl: extract data family instance constructors
* | Haddock: Straighten out base boundalexbiehl2018-03-101-1/+1
| |
* | Bump lower bound for haddock-libraryalexbiehl2018-03-101-1/+1
| |
* | Restore backward-compat with base-4.5 through base-4.8Herbert Valerio Riedel2018-03-102-2/+28
| |
* | Update to QC 2.11Herbert Valerio Riedel2018-03-102-2/+2
| |
* | Update changelogs for haddock-2.19.0.1 and haddock-library-1.5.0.1alexbiehl2018-03-102-0/+10
| |
* | Bump haddock-2.19.0.1, haddock-api-2.19.0.1, haddock-library-1.5.0.1alexbiehl2018-03-103-9/+9
| |
* | Hyperlinker: Links for TyOps, class methods and associated typesalexbiehl2018-03-052-11/+44
| |
* | Fix Bug548 for realalexbiehl2018-03-021-1/+1
| |
* | Revert "fix test"alexbiehl2018-03-021-1/+5
| | | | | | | | This reverts commit 1ac2f9569242f6cb074ba6e577285a4c33ae1197.