Skip to content

Instance type match check is too strict #73

@robertkleffner

Description

@robertkleffner

Problem is found in the typeable test file.

Core issue is that a perfectly valid instance definition can infer a type that is actually more general than the overload. In this case we can let it pass, but we need to be careful that the instance actually consumes and produces the expected number of elements from the stack still. If it does not consume and produce enough, any function which uses that instance will be unsoundly typed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions