aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/InterfaceFile.hs
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused `Haddock.Utils` functionsAlec Theriault2020-03-281-1/+1
| | | | | | | * removed functions in `Haddock.Utils` that were not used anywhere (or exported from the `haddock-api` package) * moved GHC-specific utils from `Haddock.Utils` to `Haddock.GhcUtils`
* Tentative 2.24 releaseAlec Theriault2020-03-221-1/+1
| | | | | Adjusted changelogs and versions in `.cabal` files in preparation for the upcoming release bundled with GHC 8.10.
* Clean up warningsAlec Theriault2020-03-221-1/+1
| | | | | | * unused imports * imports of `Data.List` without import lists * missing `CompatPrelude` file in `.cabal`
* Merge branch 'ghc-8.8' into ghc-8.10Alec Theriault2020-03-201-1/+26
|\
| * Better identifier parsingAlec Theriault2019-02-251-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '(<|>)' and '`elem`' now get parsed and rendered properly as links * 'DbModule'/'DbUnitId' now properly get split apart into two links * tuple names now get parsed properly * some more small niceties... The identifier parsing code is more precise and more efficient (although to be fair: it is also longer and in its own module). On the rendering side, we need to pipe through information about backticks/parens/neither all the way through from renaming to the backends. In terms of impact: a total of 35 modules in the entirety of the bootlib + ghc lib docs change. The only "regression" is things like '\0'. These should be changed to @\\0@ (the path by which this previously worked seems accidental).
* | Bump ghc version to 8.9Ryan Scott2019-02-181-1/+1
|/
* Bump version boundsAlec Theriault2018-11-061-1/+1
|
* Support hyperlink labels with inline markupAlec Theriault2018-11-061-1/+1
| | | | The parser for pictures hasn't been properly adjusted yet.
* Let `haddock-test` bypass interface version check (#890)Alec Theriault2018-07-201-2/+4
| | | | | | | | | This means `haddock-test` might * crash during deserialization * deserialize incorrectly Still - it means things _might_ work where they were previously sure not to.
* Bump GHC version to 8.7Ben Gamari2018-06-201-1/+1
|
* Merge branch 'ghc-head' with 'ghc-8.4'Herbert Valerio Riedel2018-05-011-1/+1
|\
| * Bump GHC versionBen Gamari2017-12-041-1/+1
| |
* | @since includes package name (#749)Alec Theriault2018-03-271-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | Grid Tables (#718)Oleg Grenrus2018-02-011-0/+32
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add table examples * Add table types and adopt simple parser Simple parser is done by Giovanni Cappellotto (@potomak) in https://github.com/haskell/haddock/pull/577 It seems to support single fine full tables, so far from full RST-grid tables, but it's good start. Table type support row- and colspans, but obviously parser is lacking. Still TODO: - Latex backend. Should we use multirow package https://ctan.org/pkg/multirow?lang=en? - Hoogle backend: ? * Implement grid-tables * Refactor table parser * Add two ill-examples * Update CHANGES.md * Basic documentation for tables * Fix documentation example
* Merge remote-tracking branch 'origin/master' into ghc-headalexbiehl2017-10-311-1/+1
|\
| * More general type for nameCacheFromGhc. (#539)Carlo Hamalainen2017-10-311-1/+1
| |
* | Precise Haddock: Use Avails for export resolution (#688)Alexander Biehl2017-10-081-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use Avails for export resolution * Support reexported modules * Factor out availExportItem * Use avails for fullModuleExports * Don't use subMap in attachInstances * lookupDocs without subMap * Completely remove subMap * Only calculate unqualified modules when explicit export list is given * Refactor * Refine comment * return * Fix * Refactoring * Split avail if declaration is not exported itself * Move avail splitting
* | IntefaceFile versionalexbiehl2017-08-221-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into ghc-headalexbiehl2017-08-211-7/+7
|\|
| * Haddock support for bundled pattern synonyms (#627)Christiaan Baaij2017-06-091-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Haddock support for bundled pattern synonyms * Add fixities to bundled pattern synonyms * Add bundled pattern synonyms to the synopsis * Store bundled pattern fixities in expItemFixities * Add test for bundled pattern synonyms * Stop threading fixities * Include bundled pattern synonyms for re-exported data types Sadly, fixity information isn't found for re-exported data types * Support for pattern synonyms * Modify tests after #631 * Test some reexport variations * Also lookup bundled pattern synonyms from `InstalledInterface`s * Check isExported for bundled pattern synonyms * Pattern synonym is exported check * Always look for pattern synonyms in the current module Another overlooked cornercase * Account for types named twice in export lists Also introduce a fast function for nubbing on a `Name` and use it throughout the code base. * correct fixities for reexported pattern synonyms * Fuse concatMap and map * Remove obsolete import * Add pattern synonyms to visible exports * Fix test * Remove corner case
| * Fix Binary instance for InstalledInterface (#611)Alex Biehl2017-05-011-2/+0
| | | | | | | | (#610) introduced lazy decoding for docs from InstalledInterface but forgot to remove the original calls to get and put_
| * Lazily decode docMap and argMap (#610)Alex Biehl2017-05-011-3/+3
| | | | | | | | These are only used in case of a doc reexport so most of the time decoding these is wasted work.
| * Add a field marking if interface is a signature or not.Edward Z. Yang2017-03-231-2/+4
| | | | | | | | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> (cherry picked from commit 930cfbe58e2e87f5a4d431d89a3c204934e6e858)
| * Bump for GHC 8.2Ben Gamari2017-03-091-2/+2
| |
* | Add a field marking if interface is a signature or not.Edward Z. Yang2017-03-151-2/+4
| | | | | | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
* | Bump for GHC 8.3Ben Gamari2017-03-091-2/+2
|/
* Update for refactoring of NameCacheBen Gamari2016-10-131-0/+2
|
* Merge branch 'master' into ghc-headBen Gamari2016-01-061-1/+1
|\
| * Version bumps and changelogBen Gamari2016-01-061-1/+1
| |
* | tweak version bounds for GHC-8.1Herbert Valerio Riedel2015-12-301-1/+1
|/
* Merge remote-tracking branch 'idontgetoutmuch/ghc-head' into ghc-headBen Gamari2015-12-251-1/+12
|\
| * Fix the documentation for haddock itself.Dominic Steinitz2015-12-211-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Fix-up left-over assumptions of GHC 7.12 into GHC 8.0Herbert Valerio Riedel2015-12-211-1/+1
|/
* s/PackageKey/UnitId/g and s/packageKey/unitId/gEdward Z. Yang2015-12-141-5/+8
| | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
* Bump versions for ghc-7.11Herbert Valerio Riedel2015-12-141-1/+1
|
* Refactor source path mapping to use modules as indices.Łukasz Hanuszczak2015-07-051-4/+7
|
* Remove now redundant importsMateusz Kowalczyk2015-03-261-1/+0
|
* Treat GHC 7.10 the same as GHC 7.9Herbert Valerio Riedel2014-12-141-1/+1
| | | | ...since the current GHC 7.9 is going to become GHC 7.10 real-soon-now anyway
* Various fixups and bumps for next releaseMateusz Kowalczyk2014-12-121-2/+2
|
* Revert "Merge branch 'reverts'"Mateusz Kowalczyk2014-12-121-6/+6
| | | | | | | | 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-1/+14
| | | | | | | | | | | | | | | 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.
* Move sources under haddock-api/srcMateusz Kowalczyk2014-08-231-0/+636