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

Better errors when value types don't match? #22

Open
neongreen opened this issue Nov 4, 2020 · 2 comments
Open

Better errors when value types don't match? #22

neongreen opened this issue Nov 4, 2020 · 2 comments

Comments

@neongreen
Copy link
Contributor

> Rec (#a := 3, #b := True) :: Rec '["a" := Int, "b" := String]

<interactive>:1:1: error:
    • Couldn't match type ‘Bool’ with ‘[Char]’
        arising from a use of ‘Rec’
    • In the expression:
          Rec (#a := 3, #b := True) :: Rec '["a" := Int, "b" := String]
      In an equation for ‘it’:
          it = Rec (#a := 3, #b := True) :: Rec '["a" := Int, "b" := String]

Is it possible to provide the key in the error message as well?

@effectfully
Copy link

Is this resolved now?

@neongreen
Copy link
Contributor Author

I haven't implemented it yet

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

2 participants