purescript/purescript-exceptions

Add ability to specify Error.name

zudov opened this issue · 1 comments

zudov commented

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.