Skip to content
Snippets Groups Projects
  1. Apr 12, 2024
    • Ben Gamari's avatar
      users-guide: Clarify language extension documentation · 6e18ce2b
      Ben Gamari authored and Marge Bot's avatar Marge Bot committed
      Over the years the users guide's language extension documentation has
      gone through quite a few refactorings. In the process some of the
      descriptions have been rendered non-sensical. For instance, the
      description of `NoImplicitPrelude` actually describes the semantics of
      `ImplicitPrelude`.
      
      To fix this we:
      
       * ensure that all extensions are named in their "positive" sense (e.g.
         `ImplicitPrelude` rather than `NoImplicitPrelude`).
       * rework the documentation to avoid flag-oriented wording
         like "enable" and "disable"
       * ensure that the polarity of the documentation is consistent with
         reality.
      
      Fixes #23895.
      6e18ce2b
  2. Feb 21, 2024
  3. Sep 15, 2022
  4. Aug 10, 2022
    • Trevis Elser's avatar
      Updates language extension documentation · dc76439d
      Trevis Elser authored and Marge Bot's avatar Marge Bot committed
      Adding a 'Status' field with a few values:
      - Deprecated
      - Experimental
      - InternalUseOnly
      - Noting if included in 'GHC2021', 'Haskell2010' or 'Haskell98'
      
      Those values are pulled from the existing descriptions or elsewhere in
      the documentation.
      
      While at it, include the :implied by: where appropriate, to provide
      more detail.
      
      Fixes #21475
      dc76439d
  5. Jan 02, 2022
    • sheaf's avatar
      User's guide: newtype decls can use GADTSyntax · 246d2782
      sheaf authored and Marge Bot's avatar Marge Bot committed
      The user's guide failed to explicitly mention that GADTSyntax
      can be used to declare newtypes, so we add an example and a couple
      of explanations.
      
      Also explains that `-XGADTs` generalises `-XExistentialQuantification`.
      
      Fixes #20848 and #20865.
      246d2782
  6. Jul 21, 2020
  7. Apr 12, 2020
    • Ryan Scott's avatar
      Use conLikeUserTyVarBinders to quantify field selector types · 54ca66a7
      Ryan Scott authored and Marge Bot's avatar Marge Bot committed
      This patch:
      
      1. Writes up a specification for how the types of top-level field
         selectors should be determined in a new section of the GHC User's
         Guide, and
      2. Makes GHC actually implement that specification by using
         `conLikeUserTyVarBinders` in `mkOneRecordSelector` to preserve the
         order and specificity of type variables written by the user.
      
      Fixes #18023.
      54ca66a7
  8. Jan 25, 2020
Loading