Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,349
    • Issues 5,349
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 575
    • Merge requests 575
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Merge requests
  • !7442

Change representation of `Backend`

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Norman Ramsey requested to merge wip/backend-as-record into master Jan 28, 2022
  • Overview 166
  • Commits 1
  • Pipelines 55
  • Changes 49

Closes #20927 (closed).

With this change, the value constructors of the Backend sum type are no longer exposed. Decisions that were formerly made by asking "is the current back end equal to (or different from) this named value constructor?" are now made by interrogating the back end about its properties. The properties and the functions that interrogate them are defined in GHC.Driver.Backend.

A record of the discussion can be found in !7442 (merged).

Edited Apr 19, 2022 by Norman Ramsey
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: wip/backend-as-record