In an example, I had not defined a type called Time and I got the following:
*** Exception: Prelude.undefined
CallStack (from HasCallStack):
error, called at libraries/base/GHC/Err.hs:80:14 in base:GHC.Err
undefined, called at /Users/abhiroopsarkar/C/Sense-VM/frontend/CamIoT/src/Typechecker/TypecheckTinyCamiot.hs:54:39 in main:Typechecker.TypecheckTinyCamiot
In an example, I had not defined a type called
Time
and I got the following:This is thrown from here: https://github.com/svenssonjoel/Sense-VM/blob/master/frontend/CamIoT/src/Typechecker/TypecheckTinyCamiot.hs#L54
We need to throw more meaningful error messages.