aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/InterfaceFile.hs
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup: fix build warningsVladislav Zavialov2021-02-051-1/+1
|
* Merge remote-tracking branch 'origin/ghc-8.10' into ghc-9.0Ben Gamari2021-01-051-3/+28
|\
| * Cleanup up GHC flags in `.cabal` filesAlec Theriault2020-03-281-1/+1
| | | | | | | | | | | | | | | | * enable more useful warning flags in `haddock-api`, handle the new warnings generated * remove `-fwarn-tabs` (now we'd use `-Wtabs`, but this has been in `-Wall` for a while now)
| * 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 9.0Ben Gamari2020-07-281-1/+1
| | |
* | | Update for UniqFM changes.Andreas Klebinger2020-07-021-7/+8
| | |
* | | UnitId has been renamed into UnitSylvain Henry2020-04-271-4/+4
| | |
* | | Module structureSylvain Henry2020-04-241-3/+3
| | |
* | | Modules: TypesSylvain Henry2020-03-181-5/+5
| | |
* | | Merge remote-tracking branch 'upstream/ghc-head' into HEADBen Gamari2020-02-231-1/+1
|\ \ \
| * | | Fix build of haddock in stage1Cale Gibbard2020-02-101-1/+1
| | | | | | | | | | | | | | | | We have to use the correct version of the GHC API, but the version of the compiler itself doesn't matter.
* | | | Modules: Driver (#13009)Sylvain Henry2020-02-191-2/+2
|/ / /
* | | Fix after Iface modules renamingSylvain Henry2020-01-021-2/+2
| | |
* | | Drop support for base 4.13Ben Gamari2019-11-161-1/+1
|/ /
* / 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
|