Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,394
    • Issues 4,394
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 373
    • Merge Requests 373
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Merge Requests
  • !2465

Closed
Opened Jan 14, 2020 by Gert-Jan Bottu@Gertjan423Developer
  • Report abuse
Report abuse

Explicit Specificity in Type Variable Binders

  • Overview 163
  • Commits 1
  • Pipelines 56
  • Changes 124

Implementation for Ticket #16393 (closed). As this is my first time working on GHC, feedback is very much appreciated 🙂

The main results:

  • Additional syntax is supported in the parser, allowing users to write { } brackets in type variable binders (in type signatures, data constructor declarations etc.), denoting them as inferred.
  • The AST for type variables binders (HsTyVarBndr) has been updated to include a specificity flag on each user-written variable.
  • Similarly, the AST for data constructors (both Haskell98-syntax and GADT-syntax), pattern synonyms and partial signatures have been updated to annotate variables with their specificity.
  • The feature has been added to Template Haskell as well, requiring only a small change to the AST.
  • The Haddock code has been updated to reflect these changes.
  • This information is passed along through the renamer, and verified in the type checker.
Edited Feb 25, 2020 by Gert-Jan Bottu
Assignee
Assign to
Reviewer
Request review from
9.0.1
Milestone
9.0.1 (Past due)
Assign milestone
Time tracking
Reference: ghc/ghc!2465
Source branch: wip/T16393