aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/InterfaceFile.hs
Commit message (Collapse)AuthorAgeFilesLines
* Clean up build and testsuite for GHC 9.4Ben Gamari2022-08-051-13/+0
|
* Merge remote-tracking branch 'origin/ghc-9.4'Ben Gamari2022-08-051-155/+24
|\
| * Update for GHC 9.4Ben Gamari2022-04-231-2/+2
| |
| * Bump GHC version to 9.3Ben Gamari2021-04-101-3/+3
| |
| * NameCache doesn't store a UniqSupply anymoreSylvain Henry2021-03-221-12/+2
| |
| * Fix after NameCache changesSylvain Henry2021-03-221-141/+20
| |
* | Render module tree per package in the content page (#1492)Marcin Szamotulski2022-06-071-9/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | * Render module tree per package in the content page When rendering content page for multiple packages it is useful to split the module tree per package. Package names in this patch are inferred from haddock's interface file names. * Write PackageInfo into interface file To keep interface file format backward compatible, instead of using `Binary` instance for `InterfaceFile` we introduce functions to serialise and deserialise, which depends on the interface file version.
* | Add hlint action .hlint.yaml with ignores & CPP. (#1475)Phil de Joux2022-05-021-0/+1
| |
* | Bump GHC version to 9.2Ben Gamari2021-03-221-1/+1
|/
* Update for "FastString: Use FastMutInt instead of IORef Int"Ben Gamari2021-03-101-4/+2
|
* Merge branch 'ghc-head' into ghc-9.0alexbiehl-gc2021-02-071-2/+2
|\
| * Merge remote-tracking branch 'origin/ghc-9.0' into ghc-headBen Gamari2021-01-131-3/+28
| |\
| * | GHC.Driver.Types refactoring (#1242)Sylvain Henry2020-10-261-1/+1
| | |
| * | Bump GHC version to 9.1Ben Gamari2020-09-141-1/+1
| | |
* | | Remove dubious parseModLinkalexbiehl2021-02-071-4/+4
| | | | | | | | | | | | Instead construct the ModLink value directly when parsing.
* | | Add support for labeled module referencesIñaki García Etxebarria2021-02-071-6/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support a markdown-style way of annotating module references. For instance -- | [label]("Module.Name#anchor") will create a link that points to the same place as the module reference "Module.Name#anchor" but the text displayed on the link will be "label".
* | | 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_