ghc-lib-parser-9.8.1.20231009: The GHC API, decoupled from GHC versions
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Utils.Exception

Documentation

class (Typeable e, Show e) => Exception e where #

Minimal complete definition

Nothing

Instances

Instances details
Exception NestedAtomically 
Instance details

Defined in Control.Exception.Base

Exception NoMatchingContinuationPrompt 
Instance details

Defined in Control.Exception.Base

Methods

toException :: NoMatchingContinuationPrompt -> SomeException #

fromException :: SomeException -> Maybe NoMatchingContinuationPrompt #

displayException :: NoMatchingContinuationPrompt -> String #

Exception NoMethodError 
Instance details

Defined in Control.Exception.Base

Exception NonTermination 
Instance details

Defined in Control.Exception.Base

Exception PatternMatchFail 
Instance details

Defined in Control.Exception.Base

Exception RecConError 
Instance details

Defined in Control.Exception.Base

Exception RecSelError 
Instance details

Defined in Control.Exception.Base

Exception RecUpdError 
Instance details

Defined in Control.Exception.Base

Exception TypeError 
Instance details

Defined in Control.Exception.Base

Exception Dynamic 
Instance details

Defined in Data.Dynamic

Methods

toException :: Dynamic -> SomeException #

fromException :: SomeException -> Maybe Dynamic #

displayException :: Dynamic -> String #

Exception Void 
Instance details

Defined in GHC.Exception.Type

Exception ErrorCall 
Instance details

Defined in GHC.Exception

Exception ArithException 
Instance details

Defined in GHC.Exception.Type

Exception SomeException 
Instance details

Defined in GHC.Exception.Type

Exception AllocationLimitExceeded 
Instance details

Defined in GHC.IO.Exception

Exception ArrayException 
Instance details

Defined in GHC.IO.Exception

Exception AssertionFailed 
Instance details

Defined in GHC.IO.Exception

Exception AsyncException 
Instance details

Defined in GHC.IO.Exception

Exception BlockedIndefinitelyOnMVar 
Instance details

Defined in GHC.IO.Exception

Exception BlockedIndefinitelyOnSTM 
Instance details

Defined in GHC.IO.Exception

Exception CompactionFailed 
Instance details

Defined in GHC.IO.Exception

Exception Deadlock 
Instance details

Defined in GHC.IO.Exception

Exception ExitCode 
Instance details

Defined in GHC.IO.Exception

Methods

toException :: ExitCode -> SomeException #

fromException :: SomeException -> Maybe ExitCode #

displayException :: ExitCode -> String #

Exception FixIOException 
Instance details

Defined in GHC.IO.Exception

Methods

toException :: FixIOException -> SomeException #

fromException :: SomeException -> Maybe FixIOException #

displayException :: FixIOException -> String #

Exception IOException 
Instance details

Defined in GHC.IO.Exception

Exception SomeAsyncException 
Instance details

Defined in GHC.IO.Exception

Exception FileLockingNotSupported 
Instance details

Defined in GHC.IO.Handle.Lock.Common

Methods

toException :: FileLockingNotSupported -> SomeException #

fromException :: SomeException -> Maybe FileLockingNotSupported #

displayException :: FileLockingNotSupported -> String #

Exception IOEnvFailure # 
Instance details

Defined in GHC.Data.IOEnv

Exception SourceError # 
Instance details

Defined in GHC.Types.SourceError

Exception GhcException # 
Instance details

Defined in GHC.Utils.Panic

Exception PlainGhcException # 
Instance details

Defined in GHC.Utils.Panic.Plain

newtype TypeError #

Constructors

TypeError String 

data MaskingState #

Instances

Instances details
Show MaskingState 
Instance details

Defined in GHC.IO

NFData MaskingState 
Instance details

Defined in Control.DeepSeq

Methods

rnf :: MaskingState -> ()

Eq MaskingState 
Instance details

Defined in GHC.IO

data Deadlock #

Constructors

Deadlock 

Instances

Instances details
Exception Deadlock 
Instance details

Defined in GHC.IO.Exception

Show Deadlock 
Instance details

Defined in GHC.IO.Exception

data ErrorCall #

Bundled Patterns

pattern ErrorCall :: String -> ErrorCall 

Instances

Instances details
Exception ErrorCall 
Instance details

Defined in GHC.Exception

Show ErrorCall 
Instance details

Defined in GHC.Exception

Eq ErrorCall 
Instance details

Defined in GHC.Exception

Ord ErrorCall 
Instance details

Defined in GHC.Exception

data Handler a #

Constructors

Exception e => Handler (e -> IO a) 

Instances

Instances details
Functor Handler 
Instance details

Defined in Control.Exception

Methods

fmap :: (a -> b) -> Handler a -> Handler b #

(<$) :: a -> Handler b -> Handler a #

interruptible :: IO a -> IO a #

bracket_ :: IO a -> IO b -> IO c -> IO c #

catch :: Exception e => IO a -> (e -> IO a) -> IO a #

handle :: Exception e => (e -> IO a) -> IO a -> IO a #

try :: Exception e => IO a -> IO (Either e a) #

throwTo :: Exception e => ThreadId -> e -> IO () #

throwIO :: Exception e => e -> IO a #

bracket :: IO a -> (a -> IO b) -> (a -> IO c) -> IO c #

evaluate :: a -> IO a #

finally :: IO a -> IO b -> IO a #

mask :: ((forall a. IO a -> IO a) -> IO b) -> IO b #

mask_ :: IO a -> IO a #

onException :: IO a -> IO b -> IO a #

uninterruptibleMask :: ((forall a. IO a -> IO a) -> IO b) -> IO b #

throw :: forall (r :: RuntimeRep) (a :: TYPE r) e. Exception e => e -> a #

catchJust :: Exception e => (e -> Maybe b) -> IO a -> (b -> IO a) -> IO a #

bracketOnError :: IO a -> (a -> IO b) -> (a -> IO c) -> IO c #

handleJust :: Exception e => (e -> Maybe b) -> (b -> IO a) -> IO a -> IO a #

mapException :: (Exception e1, Exception e2) => (e1 -> e2) -> a -> a #

tryJust :: Exception e => (e -> Maybe b) -> IO a -> IO (Either b a) #

catches :: IO a -> [Handler a] -> IO a #

type ExceptionMonad m = (MonadCatch m, MonadThrow m, MonadMask m, MonadIO m) #

catchIO :: IO a -> (IOException -> IO a) -> IO a #

handleIO :: (IOException -> IO a) -> IO a -> IO a #