Module

Control.Monad.Eff.Exception.Unsafe

Package
purescript-exceptions
Repository
purescript/purescript-exceptions

#unsafeThrowException Source

unsafeThrowException :: forall a. Error -> a

Throw an exception in pure code. This function should be used very sparingly, as it can cause unexpected crashes at runtime.

#unsafeThrow Source

unsafeThrow :: forall a. String -> a

Defined as unsafeThrowException <<< error.