Modulerebase-1.21.2Haskell2010
Rebase.GHC.IO.Exception
- 14 types
- 16 values
- Packagerebase-1.21.2
- Exports30
- LanguageHaskell2010
- LicenceMIT
- SourceException.hs
Exceptions that occur in the IO monad.
An IOException records a more specific error type, a descriptive
string and maybe the handle that was used when the error was
flagged.
Constructors
IOErrorioe_handle :: Maybe Handlethe handle used by the action flagging the error.
ioe_type :: IOErrorTypewhat it was.
ioe_location :: Stringlocation.
ioe_description :: Stringerror type specific information.
ioe_errno :: Maybe CInterrno leading to this error, if any.
ioe_filename :: Maybe FilePathfilename the error is related to (some libraries may assume different encodings when constructing this field from e.g.
ByteStringor other types)
Instances4Eq, Show, Exception, MonadError
Eq IOExceptionDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionShow IOExceptionDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionException IOExceptionDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionMonadError IOException IODefined in mtl-2.3.1 · Control.Monad.Error.Class
The thread is blocked on an MVar, but there are no other references
to the MVar so it can't ever continue.
Instances2Show, Exception
Show BlockedIndefinitelyOnMVarDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionException BlockedIndefinitelyOnMVarDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.Exception
The thread is waiting to retry an STM transaction, but there are no
other references to any TVars involved, so it can't ever continue.
Instances2Show, Exception
Show BlockedIndefinitelyOnSTMDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionException BlockedIndefinitelyOnSTMDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.Exception
There are no runnable threads, so the program is deadlocked.
The Deadlock exception is raised in the main thread only.
This thread has exceeded its allocation limit. See setAllocationCounter and enableAllocationLimit.
Instances2Show, Exception
Show AllocationLimitExceededDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionException AllocationLimitExceededDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.Exception
Exceptions generated by array operations
Constructors
IndexOutOfBounds StringAn attempt was made to index an array outside its declared bounds.
UndefinedElement StringAn attempt was made to evaluate an element of an array that had not been initialized.
Instances4Eq, Ord, Show, Exception
Eq ArrayExceptionDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionOrd ArrayExceptionDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionShow ArrayExceptionDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionException ArrayExceptionDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.Exception
Constructors
Instances2Show, Exception
Show AssertionFailedDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionException AssertionFailedDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.Exception
Asynchronous exceptions.
Constructors
StackOverflowThe current thread's stack exceeded its limit. Since an exception has been raised, the thread's stack will certainly be below its limit again, but the programmer should take remedial action immediately.
HeapOverflowThe program's heap is reaching its limit, and the program should take action to reduce the amount of live data it has. Notes:
It is undefined which thread receives this exception. GHC currently throws this to the same thread that receives UserInterrupt, but this may change in the future.
The GHC RTS currently can only recover from heap overflow if it detects that an explicit memory limit (set via RTS flags). has been exceeded. Currently, failure to allocate memory from the operating system results in immediate termination of the program.
ThreadKilledThis exception is raised by another thread calling killThread, or by the system if it needs to terminate the thread for some reason.
UserInterruptThis exception is raised by default in the main thread of the program when the user requests to terminate the program via the usual mechanism(s) (e.g. Control-C in the console).
Instances4Eq, Ord, Show, Exception
Eq AsyncExceptionDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionOrd AsyncExceptionDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionShow AsyncExceptionDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionException AsyncExceptionDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.Exception
Compaction found an object that cannot be compacted. Functions
cannot be compacted, nor can mutable objects or pinned objects.
See compact.
Constructors
Instances2Show, Exception
Show CompactionFailedDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionException CompactionFailedDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.Exception
Superclass for asynchronous exceptions.
Constructors
forall e. Exception e => SomeAsyncException e
Instances2Show, Exception
Show SomeAsyncExceptionDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionException SomeAsyncExceptionDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.Exception
The exception thrown when an infinite cycle is detected in fixIO.
Instances2Show, Exception
Show FixIOExceptionDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionException FixIOExceptionDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.Exception
Defines the exit codes that a program can return.
Constructors
ExitSuccessindicates successful termination;
ExitFailure Intindicates program failure with an exit code. The exact interpretation of the code is operating-system dependent. In particular, some values may be prohibited (e.g. 0 on a POSIX-compliant system).
Instances8Eq, Ord, Read, Show, Generic, Exception, …
Eq ExitCodeDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionOrd ExitCodeDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionRead ExitCodeDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionShow ExitCodeDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionGeneric ExitCodeDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionException ExitCodeDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionNFData ExitCodeDefined in deepseq-1.5.0.0 · Control.DeepSeqtype Rep ExitCode = D1 ('MetaDataDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.Exception"ExitCode"
"GHC.Internal.IO.Exception"
"ghc-internal"
'False) (C1 ('MetaCons"ExitSuccess"
'PrefixI 'False) U1 :+: C1 ('MetaCons"ExitFailure"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))
An abstract type that contains a value for each variant of IOError.
Instances2Eq, Show
Eq IOErrorTypeDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.ExceptionShow IOErrorTypeDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.Exception