First, declare a type function with no equations: (This isn't really necessary, but we do need a stuck type expression here)
type function foo 'a : Amc.error_message begin
end
Next, try to reduce type_error (foo _):
> Typeable.( Refl : Amc.type_error (foo int) :~: int )
amc: foo intKind error in solveTypeError
CallStack (from HasCallStack):
error, called at src/Types/Unify/Magic.hs:132:19 in amuletml-0.6.0.0-FpV3lZItaEn5
First, declare a type function with no equations: (This isn't really necessary, but we do need a stuck type expression here)
Next, try to reduce
type_error (foo _)
: