Skip to content

Type improvement needs to correctly take into account the determiners and determinants #22

Description

@fxdpntthm

The try_type_improvement function assumes that the determinant is always the right most type argument to an open type

class F a b | a -> b
instance F Int Int

with
[W] F Int b -- works

T a b | b -> a
instance T Int int 

with [W] T a Int -- Fails

Expected
both T and F should work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions