aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Backends/Xhtml/Decl.hs
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/ghc-9.4'Ben Gamari2022-08-051-21/+23
|\
| * Keep track of promotion ticks in HsOpTysheaf2022-04-011-8/+8
| | | | | | | | | | Keeping track of promotion ticks in HsOpTy allows us to properly pretty-print promoted constructors such as lists.
| * HsToken in FunTy, RecConGADTVladislav Zavialov2021-06-101-3/+3
| |
| * FieldOcc: rename extFieldOcc to foExtShayne Fletcher2021-05-221-3/+3
| |
| * Remove Maybe from HsQualTyAlan Zimmerman2021-05-201-7/+9
| | | | | | | | Match changes in GHC for #19845
* | Follow hlint suggestion: redundant $. (#1505)Phil de Joux2022-07-241-1/+1
|/ | | | | * Follow hlint suggestion: redundant $. * Remove $ and surplus blank lines in Operators.
* Match changes in GHC AST for in-tree API AnnotationsAlan Zimmerman2021-03-151-38/+40
| | | | As landed via https://gitlab.haskell.org/ghc/ghc/-/merge_requests/2418
* Context becomes a Maybe in the GHC ASTAlan Zimmerman2021-02-221-11/+13
| | | | | | This prevents noLoc's appearing in the ParsedSource. Match the change in GHC.
* Merge commit '41964cb2fd54b5a10f8c0f28147015b7d5ad2c02' into wip/ghc-head-mergeBen Gamari2021-02-061-0/+1
|\
| * type level characters support for haddock (required for #11342)Daniel Rogozin2021-02-051-0/+1
| |
* | Merge remote-tracking branch 'origin/ghc-9.0' into ghc-headBen Gamari2021-01-131-77/+90
|\ \ | |/ |/|
| * Merge remote-tracking branch 'origin/ghc-8.10' into ghc-9.0Ben Gamari2021-01-051-76/+90
| |\
| | * Changes for GHC#17566Alex Biehl2020-12-081-1/+3
| | | | | | | | | | | | See https://gitlab.haskell.org/ghc/ghc/merge_requests/2469
| | * Use `unLoc`/`noLoc` from GHC instead of `unL`/`reL`Alec Theriault2020-03-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * `unL` is already defined by GHC as `unLoc` * `reL` is already defined by GHC as `noLoc` (in a safer way too!) * Condense `setOutputDir` and add a about exporting from GHC Fixes #978
| | * Use TTG empty extensions to remove some `error`'sAlec Theriault2020-03-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | None of these error cases should ever have been reachable, so this is just a matter of leveraging the type system to assert this. * Use the `NoExtCon` and `noExtCon` to handle case matches for no extension constructors, instead of throwing an `error`. * Use the extension field of `HsSpliceTy` to ensure that this variant of `HsType` cannot exist in an `HsType DocNameI`.
| | * 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-83/+100
| | |\
| | | * Matching changes in GHC for #16236Alan Zimmerman2019-03-291-2/+2
| | | | | | | | | | | | | | | | (cherry picked from commit 3ee6526d4ae7bf4deb7cd1caf24b3d7355573576)
| | | * Better support for default methods in classesAlec Theriault2019-03-091-28/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * default methods now get rendered differently * default associated types get rendered * fix a forgotten `s/TypeSig/ClassOpSig/` refactor in LaTeX backend * LaTeX backend now renders default method signatures NB: there is still no way to document default class members and the NB: LaTeX backend still crashes on associated types
| | | * Merge branch 'ghc-8.6' into ghc-8.8Alec Theriault2019-03-031-42/+25
| | | |\
| | | | * Keep forall on H98 existential data constructors (#1003)Alec Theriault2019-01-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The information about whether or not there is a source-level `forall` is already available on a `ConDecl` (as `con_forall`), so we should use it instead of always assuming `False`! Fixes #1002.
| | | | * More uniform handling of `forall`'s in HTML/LaTeXAlec Theriault2018-11-261-39/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * don't forget to print explicit `forall`'s when there are arg docs * when printing an explicit `forall`, print all tyvars Fixes #973
* | | | | Adapt to HsCoreTy (formerly NewHsTypeX) becoming a type synonymRyan Scott2020-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | Needed for !4417, the fix for GHC#15706 and GHC#18914.
* | | | | Display linear/multiplicity arrows correctly (#1238)Krzysztof Gogolewski2020-12-161-2/+7
| | | | | | | | | | | | | | | | | | | | Previously we were ignoring multiplicity and displayed a %1 -> b as a -> b.
* | | | | Add type arguments to PrefixConCale Gibbard2020-11-251-3/+3
| | | | |
* | | | | Adapt to HsOuterTyVarBndrsRyan Scott2020-10-301-33/+61
| | | | | | | | | | | | | | | | | | | | | | | | | These changes accompany ghc/ghc!4107, which aims to be a fix for #16762.
* | | | | Adapt to HsConDecl{H98,GADT}Details splitRyan Scott2020-10-301-14/+16
| | | | | | | | | | | | | | | | | | | | Needed for GHC#18844.
* | | | | Update for modular ping pongZubin Duggal2020-07-231-4/+1
|/ / / /
* | | | Adapt Haddock to LinearTypesKrzysztof Gogolewski2020-06-171-12/+14
| | | | | | | | | | | | | | | | See ghc/ghc!852.
* | | | Use HsForAllTelescope (GHC#18235)Ryan Scott2020-06-131-28/+32
| | | |
* | | | Changes for GHC#18191Ryan Scott2020-06-051-1/+1
| | | | | | | | | | | | | | | | See https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3337.
* | | | Explicit Specificity Support for HaddockGert-Jan Bottu2020-05-201-11/+31
| | | |
* | | | Module structureSylvain Henry2020-04-241-1/+1
| | | |
* | | | Module renamingSylvain Henry2020-04-101-1/+0
| | | |
* | | | Make NoExtCon fields strictRyan Scott2020-04-071-12/+0
| | | | | | | | | | | | | | | | | | | | These changes are a part of a fix for [GHC#17992](https://gitlab.haskell.org/ghc/ghc/issues/17992).
* | | | Modules: TypesSylvain Henry2020-03-201-3/+3
| | | |
* | | | Changes for GHC#17566Ryan Scott2020-01-251-2/+2
|/ / / | | | | | | | | | See https://gitlab.haskell.org/ghc/ghc/merge_requests/2469
* | | Changes for #15247Ryan Scott2019-07-031-24/+24
| | |
* | | Visible dependent quantification (#16326) changesRyan Scott2019-02-271-15/+24
| | |
* | | Matching changes in GHC for #16236Alan Zimmerman2019-02-051-2/+2
|/ /
* | Visible kind application haddock updatemynguyen2018-12-301-3/+16
| |
* | Properly synify and render promoted type variables (#985)Alec Theriault2018-12-231-3/+4
| | | | | | | | | | | | | | | | * Synify and render properly promoted type variables Fixes #923. * Accept output
* | Refactor names + unused functions (#982)Alec Theriault2018-12-171-1/+1
| | | | | | | | | | | | | | This commit should not introduce any change in functionality! * consistently use `getOccString` to convert `Name`s to strings * compare names directly when possible (instead of comparing strings) * get rid of unused utility functions
* | [TTG: Handling Source Locations] Foundation and PatShayan-Najd2018-11-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | Trac Issues #15495 This patch removes the ping-pong style from HsPat (only, for now), using the plan laid out at https://ghc.haskell.org/trac/ghc/wiki/ImplementingTreesThatGrow/HandlingSourceLocations (solution A). - the class `HasSrcSpan`, and its functions (e.g., `cL` and `dL`), are introduced - some instances of `HasSrcSpan` are introduced - some constructors `L` are replaced with `cL` - some patterns `L` are replaced with `dL->L` view pattern - some type annotation are necessarily updated (e.g., `Pat p` --> `Pat (GhcPass p)`)
* | Follow GHC HEAD's HsTypes.Promoted -> BasicTypes.PromotionFlag changeAlp Mestanogullari2018-11-151-1/+2
|/ | | | It got introduced in ghc/ghc@ae2c9b40f5b6bf272251d1f4107c60003f541b62.
* Avoid more conflicts in generated ids (#954)Alec Theriault2018-10-251-6/+10
| | | | | This fixes #953 by passing more names into the generated ids.
* Latex type families (#734)Alec Theriault2018-10-161-120/+102
| | | | | | | | | | | | | | | | | | | | * Support for type families in LaTeX The code is ported over from the XHTML backend. * Refactor XHTML and LaTeX family handling This is mostly a consolidation effort: stripping extra exports, inlining some short definitions, and trying to make the backends match. The LaTeX backend now has preliminary support for data families, although the only the data instance head is printed (not the actual constructors). Both backends also now use "newtype" for newtype data family instances. * Add some tests
* Update the ghc-8.6 branch (#889)Simon Jakobi2018-07-201-79/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Revert "Bump GHC version to 8.6" This was applied to the wrong branch; there's now a `ghc-8.6` branch; ghc-head is always supposed to point to GHC HEAD, i.e. an odd major version. The next version bump to `ghc-head` is supposed to go from e.g. 8.5 to 8.7 This reverts commit 5e3cf5d8868323079ff5494a8225b0467404a5d1. * README updates (#856) * README: Remove mentions of master branch * README: Add instructions for using html-test * README: Change command to run _all_ the testsuites * README: Add project overview section (cherry picked from commit 61d6f935da97eb96685f07bf385102c2dbc2a33c) * Export more fixities for Hoogle (#871) This exports fixities for more things, including class methods and type-level operators. (cherry picked from commit 88316b972e3d47197b1019111bae0f7f87275fce) * Avoid line breaks due to line length in Hoogle (#868) * Avoid line breaks due to line length in Hoogle Hoogle operates in a line-oriented fashion, so we should avoid ever breaking due to long lines. One way of doing this non-intrusively is to modify the 'DynFlags' that are threaded through the 'Hoogle' module (note this is anyways only passed through for use in the various 'showSDoc' functions). * Amend test case (cherry picked from commit 657b1b3d519545f8d4ca048c06210d6cbf0f0da0) * tyThingToLHsDecl: Preserve type synonyms that contain a forall (#880) * tyThingToLHsDecls: Preserve type synonyms that contain a forall Fixes #879. * Add Note [Invariant: Never expand type synonyms] * Clarify Note [Invariant: Never expand type synonyms] (cherry picked from commit c3eb3f0581f69e816f9453b1747a9f2a3ba02bb9) * Fix HEAD html-test (#860) * Update tests for 'StarIsType' * Accept tests * Revert "Update tests for 'StarIsType'" This reverts commit 7f0c01383bbba6dc5af554ee82988d2cf44e407a. * Refactor handling of parens in types (#874) * Fix type parenthesization in Hoogle backend Ported the logic in the HTML and LaTeX backends for adding in parens into something top-level in 'GhcUtil'. Calling that from the Hoogle backend fixes #873. * Remove parenthesizing logic from LaTeX and XHTML backends Now, the only times that parenthesis in types are added in any backend is through the explicit 'HsParTy' constructor. Precedence is also represented as its own datatype. * List out cases explicitly vs. catch-all * Fix printing of parens for QuantifiedConstraints The priority of printing 'forall' types was just one too high. Fixes #877. * Accept HTML output for quantified contexts test * Preserve docs on type family instances (#867) * Preserve docs on type family instances The only problem was that the instance location was slightly off for type family instances. * Accept output (cherry picked from commit 133e9c2c168db19c1135479f7ab144c4e33af2a4) * Fix broken instance source links (#869) The problem manifests itself in instances that are defined in modules other than the module where the class is defined. The fix is just to thread through the 'Module' of the instance further along. Since orphan instances appear to already have been working, I didn't do anything there. (cherry picked from commit 2de7c2acf9b1ec85b09027a8bb58bf8512e91c05) * Add some more unicode related tests (#872) This has been fixed for sure ever since we switched from attoparsec to parsec. Parts of it may have been working before that, but there was a point where this would have failed (see #191). A regression test never hurt anyone. :) (cherry picked from commit 5ec7715d418bfac0f26aec6039792a99a6e89370) * Misc tests (#858) * More tests * spliced types * constructor/pattern argument docs * strictness marks on fields with argument docs * latex test cases need seperate directory * Accept tests * Additional tests for the identifier parser (#816) * Add tests for the identifier parser * docs: Clarify how to delimit identifiers (cherry picked from commit 0861affeca4d72938f05a2eceddfae2c19199071)
* Remove HsEqTy and XEqTyRyan Scott2018-06-191-4/+0
|
* Handle -XStarIsTypeVladislav Zavialov2018-06-141-9/+14
|