jrec icon indicating copy to clipboard operation
jrec copied to clipboard

Better errors when value types don't match?

Open neongreen opened this issue 3 years ago • 2 comments

> 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?

neongreen avatar Nov 04 '20 12:11 neongreen

Is this resolved now?

effectfully avatar Dec 14 '20 15:12 effectfully

I haven't implemented it yet

neongreen avatar Dec 15 '20 09:12 neongreen