Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix superclass method access #30

Open
t4ccer opened this issue Apr 24, 2024 · 0 comments
Open

Fix superclass method access #30

t4ccer opened this issue Apr 24, 2024 · 0 comments

Comments

@t4ccer
Copy link
Member

t4ccer commented Apr 24, 2024

Description

The following snippet should compile

To Reproduce

class Eq a where
  eq :: a -> a -> Boolean

class Eq a <= Ord a where
  compare :: a -> a -> Int

instance Eq Int where
  eq _ _ = true

instance Ord Int where
  compare _ _ = 42

testEqViaOrd :: forall a. Ord a => a -> a -> Boolean
testEqViaOrd a b = eq a b

Expected behavior

It compiles

Additional context

tests: An internal error occurred during compilation: Error while desugaring record accessor. No type provided for expression: 
$dictOrd6."Eq0"

Purus version

c8fac0a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant