purescript-exceptions
purescript-exceptions copied to clipboard
Add ability to specify Error.name
Currently, there is an accessor for Error.name (name :: Error -> String). It would be nice to have a helper that allows to create an error with a given name, like namedError :: String -> String -> Error.
Not sure if it's absence is intentional, but seems reasonable to me.