Skip to content

GitLab

  • Menu
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 4,870
    • Issues 4,870
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 453
    • Merge requests 453
  • 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 Compiler
  • GHCGHC
  • Issues
  • #17183
Closed
Open
Created Sep 12, 2019 by Richard Eisenberg@raeDeveloper

-XDerivingVia (and deriving strategies) is under specified in the manual

I had forgotten the syntax for deriving-strategies. Specifically, I wanted to know whether I had to put the strategy before or after the list of classes. So I looked it up.... but the manual doesn't say. The examples suggest that the strategy comes before, but then in the -XDerivingVia section, the strategy comes after. Are both allowed? Is via allowed prefix? It is a mystery.

And then I looked through the -XDerivingVia documentation. That is explained entirely by example, with no standalone specification. Yet the specification really has been worked out -- it's in the paper. This text should be incorporated into the users' guide, along with a link to the paper (which I also did not see). Also needed are a description of how typing works -- or at least scoping. It's very non-trivial.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking