assertion-error wrapper for purescript