base-compat-0.11.2: A compatibility layer for base

Safe HaskellTrustworthy
LanguageHaskell2010

Control.Exception.Compat

Synopsis

Documentation

throw :: Exception e => e -> a #

Throw an exception. Exceptions may be thrown from purely functional code, but may only be caught within the IO monad.