unison icon indicating copy to clipboard operation
unison copied to clipboard

Exception with no useful information when using types with curly braces

Open alvaroc1 opened this issue 2 years ago • 1 comments

structural type Row c = Row

check : Row {Boolean} -> ()
check row = ()

value : Row {Text, Boolean}
value = Row

> check value
.alvaro.public> 
Encountered exception:
unpossible
CallStack ( from HasCallStack ) :
   error

i have no idea if the code should type-check or not, but the error should provide more details

alvaroc1 avatar Aug 07 '22 15:08 alvaroc1

Thanks for reporting. @dolio can you have a look when you’ve got a chance?

pchiusano avatar Aug 08 '22 11:08 pchiusano