aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Utils.hs
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/ghc-9.0' into ghc-headBen Gamari2021-01-131-185/+27
|\
| * Merge remote-tracking branch 'origin/ghc-8.10' into ghc-9.0Ben Gamari2021-01-051-157/+27
| |\
| | * Remove unused `Haddock.Utils` functionsAlec Theriault2020-03-281-146/+4
| | | | | | | | | | | | | | | | | | | | | * 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`
| | * Clean up warningsAlec Theriault2020-03-221-1/+0
| | | | | | | | | | | | | | | | | | * 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-5/+20
| | |\
| | | * Remove Haddock's dependency on `Cabal`Alec Theriault2019-05-261-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At this point, Haddock depended on Cabal-the-library solely for a verbosity parser (which misleadingly accepts all sorts of verbosity options that Haddock never uses). Now, the only dependency on Cabal is for `haddock-test` (which uses Cabal to locate the Haddock interface files of a couple boot libraries).
* | | | Enable two warnings (#1245) (#1268)tomjaguarpaw2020-12-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | because they will be soon be added to -Wall. See https://gitlab.haskell.org/ghc/ghc/-/issues/15656
* | | | Add type arguments to PrefixConCale Gibbard2020-11-251-2/+2
| | | |
* | | | Adapt to HsOuterTyVarBndrsRyan Scott2020-10-301-8/+26
| | | | | | | | | | | | | | | | | | | | These changes accompany ghc/ghc!4107, which aims to be a fix for #16762.
* | | | Adapt to HsConDecl{H98,GADT}Details splitRyan Scott2020-10-301-8/+20
| | | | | | | | | | | | | | | | Needed for GHC#18844.
* | | | Update for modular ping pongZubin Duggal2020-07-231-2/+1
|/ / /
* | | Adapt Haddock to LinearTypesKrzysztof Gogolewski2020-06-171-1/+3
| | | | | | | | | | | | See ghc/ghc!852.
* | | Use HsForAllTelescope (GHC#18235)Ryan Scott2020-06-131-3/+3
| | |
* | | add dependency on exceptions because GHC.Exception was boiled down (ghc #18075)Artem Pelenitsyn2020-05-031-1/+2
| | |
* | | Module structureSylvain Henry2020-04-241-3/+2
| | |
* | | Make NoExtCon fields strictRyan Scott2020-04-071-2/+0
| | | | | | | | | | | | | | | These changes are a part of a fix for [GHC#17992](https://gitlab.haskell.org/ghc/ghc/issues/17992).
* | | Modules: TypesSylvain Henry2020-03-181-2/+2
| | |
* | | Changes in GHC's !1913.Richard Eisenberg2020-03-091-3/+3
|/ /
* | Changes for #15247Ryan Scott2019-07-031-6/+6
| |
* | Match changes for "Stop inferring over-polymorphic kinds"Alec Theriault2019-03-091-3/+1
| | | | | | | | | | | | | | | | The `hsq_ext` field of `HsQTvs` is now just the implicit variables (instead of also including information about which of these variables are dependent). This commit shouldn't change any functionality in Haddock.
* | Visible dependent quantification (#16326) changesRyan Scott2019-02-271-2/+2
|/
* Use `.hie` files for the Hyperlinker backend (#977)Alec Theriault2019-01-311-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Summary This is a large architectural change to the Hyperlinker. * extract link (and now also type) information from `.hie` instead of doing ad-hoc SYB traversals of the `RenamedSource`. Also adds a superb type-on-hover feature (#715). * re-engineer the lexer to avoid needless string conversions. By going directly through GHC's `P` monad and taking bytestring slices, we avoid a ton of allocation and have better handling of position pragmas and CPP. In terms of performance, the Haddock side of things has gotten _much_ more efficient. Unfortunately, much of this is cancelled out by the increased GHC workload for generating `.hie` files. For the full set of boot libs (including `ghc`-the-library) * the sum of total time went down by 9-10% overall * the sum of total allocations went down by 6-7% # Motivation Haddock is moving towards working entirely over `.hi` and `.hie` files. This change means we no longer need the `RenamedSource` from `TypecheckedModule` (something which is _not_ in `.hi` files). # Details Along the way a bunch of things were fixed: * Cross package (and other) links are now more reliable (#496) * The lexer tries to recover from errors on every line (instead of at CPP boundaries) * `LINE`/`COLUMN` pragmas are taken into account * filter out zero length tokens before rendering * avoid recomputing the `ModuleName`-based `SrcMap` * remove the last use of `Documentation.Haddock.Utf8` (see #998) * restructure temporary folder logic for `.hi`/`.hie` model
* Fix warnings, accept outputAlec Theriault2018-12-121-1/+0
| | | | | | | * remove redundant imports (only brought to light due to recent work for improving redundant import detection) * fix a bug that was casuing exports to appear in reverse order * fix something in haddock-library that prevented compilation on old GHC's
* Follow GHC HEAD's HsTypes.Promoted -> BasicTypes.PromotionFlag changeAlp Mestanogullari2018-11-151-0/+1
| | | | It got introduced in ghc/ghc@ae2c9b40f5b6bf272251d1f4107c60003f541b62.
* Set UTF-8 encoding before writing files (#934)Alec Theriault2018-10-161-1/+11
| | | | | This should fix #929, as well as guard against future problems of this sort in other places. Basically replaces 'writeFile' (which selects the users default locale) with 'writeUtf8File' (which always uses utf8).
* Fix redundant import warningsSimon Jakobi2018-06-131-1/+0
|
* Match changes in GHC for TTGAlan Zimmerman2018-04-271-11/+15
|
* Match GHC for TTG implemented on HsBinds, D4581Alan Zimmerman2018-04-131-5/+5
|
* Match GHC changes for TTGAlan Zimmerman2018-04-091-6/+9
|
* Track changes to follow Trac #14529Simon Peyton Jones2017-12-071-18/+2
| | | | This tracks the refactoring of HsDecl.ConDecl.
* Revert "Match changes for Trees that Grow in GHC"Ben Gamari2017-11-211-9/+6
| | | | This reverts commit 01eeeb048acd2dd05ff6471ae148a97cf0720547.
* Revert "Clean up use of PlaceHolder, to match TTG"Ben Gamari2017-11-211-4/+4
| | | | This reverts commit 134a7bb054ea730b13c8629a76232d73e3ace049.
* Clean up use of PlaceHolder, to match TTGAlan Zimmerman2017-11-141-4/+4
|
* Match changes for Trees that Grow in GHCAlan Zimmerman2017-11-071-6/+9
|
* Merge remote-tracking branch 'origin/ghc-head' into HEADalexbiehl2017-10-081-10/+10
|\
| * Merge remote-tracking branch 'origin/master' into ghc-headalexbiehl2017-08-211-67/+0
| |\
| * | Rename extension index tagsAlan Zimmerman2017-06-051-10/+10
| | |
| * | Match new AST as per GHC wip/new-tree-one-paramAlan Zimmerman2017-06-051-10/+10
| | | | | | | | | | | | See https://ghc.haskell.org/trac/ghc/wiki/ImplementingTreesThatGrow
| * | Merge commit '240bc38b94ed2d0af27333b23392d03eeb615e82' into HEADBen Gamari2017-03-231-10/+2
| |\ \
* | | | Add compile step that bundles and compresses JS files (#684)Tim Baumann2017-09-231-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add compile step that bundles and compresses JS files Also, manage dependencies on third-party JS libraries using NPM. * Compile JS from TypeScript * Enable 'noImplicitAny' in TypeScript * QuickJump: use JSX syntax * Generate source maps from TypeScript for easier debugging * TypeScript: more accurate type * Separate quick jump css file from ocean theme
* | | | Content search for haddock html docalexbiehl2017-08-271-1/+9
| | | |
* | | | Generate an index for package content search (#662)Florian Eggenhofer2017-08-271-2/+3
| |_|/ |/| | | | | Generate an index for package content search
* | | Move `DocMarkup` from haddock-api to haddock-library (#659)Alexander Biehl2017-07-311-67/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move `DocMarkup` from haddock-api to haddock-library * Move more markup related functions * Markup module * CHANGELOG
* | | Merge branch 'ghc-head'Ben Gamari2017-03-101-2/+2
|\| | | |/ |/|
| * Match changes in GHC wip/T3384 branchAlan Zimmerman2016-12-071-1/+1
| |
| * Follow changes to LHsSigWcTypeSimon Peyton Jones2016-06-131-1/+1
| |
| * Changes due to fix for GHC#11648.Richard Eisenberg2016-03-141-2/+5
| |
* | remove framed view of the HTML documentation (see #114 and #274)Sebastian Meric de Bellefon2016-05-241-10/+2
| | | | | | | | | | Frames are a bit broken, ignored by Hackage, and considered obsolete in general. This patch disables frames generation. The mini_*.html files are still used in the synopsis.
* | Changes due to fix for GHC#11648.Richard Eisenberg2016-03-151-2/+5
|/ | | | (cherry picked from commit bb994de1ab0c76d1aaf1e39c54158db2526d31f1)
* Fix the documentation for haddock itself.Dominic Steinitz2015-12-211-0/+2
| | | | | | | | | | | | | | | 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