pure
pure copied to clipboard
Impossible to define/raise user-defined exceptions
This works:
data Error = Fail
main = Raise Subscript
While the following is rejected by the compiler:
data Error = Fail
main = Raise Fail