Skip to content

Class plugin type lenses show unnecessary constraints #3240

Open
@michaelpj

Description

@michaelpj

On 1.8.0

The lenses for the class plugin show type signatures that include any context from the class itself, e.g.

image

(those constraints appear on the class). This is unnecessary: you can delete the constraints and the signature works because they're implied.

This is I think a similar problem to what we had here #2966 (comment)

I'm not totally sure what to do. Maybe we can ask the GHC devs if there's a way to get the right answer here. Maybe we can just remember the constraints that are in scope and try and get rid of them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: hls-class-plugintype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions