Movatterモバイル変換
[0]ホーム
moduleGHC.IO.Exception(BlockedIndefinitelyOnMVar(..),blockedIndefinitelyOnMVar,BlockedIndefinitelyOnSTM(..),blockedIndefinitelyOnSTM,Deadlock(..),AssertionFailed(..),AsyncException(..),stackOverflow,heapOverflow,ArrayException(..),ExitCode(..),ioException,ioError,IOError,IOException(..),IOErrorType(..),userError,assertError,unsupportedOperation,untangle,)whereimportGHC.BaseimportGHC.ListimportGHC.IOimportGHC.ShowimportGHC.ReadimportGHC.ExceptionimportData.MaybeimportGHC.IO.Handle.TypesimportForeign.C.TypesimportData.Typeable(Typeable)dataBlockedIndefinitelyOnMVar=BlockedIndefinitelyOnMVarderivingTypeableinstanceExceptionBlockedIndefinitelyOnMVarinstanceShowBlockedIndefinitelyOnMVarwhereshowsPrec_BlockedIndefinitelyOnMVar=showString"thread blocked indefinitely in an MVar operation"blockedIndefinitelyOnMVar::SomeExceptionblockedIndefinitelyOnMVar=toExceptionBlockedIndefinitelyOnMVardataBlockedIndefinitelyOnSTM=BlockedIndefinitelyOnSTMderivingTypeableinstanceExceptionBlockedIndefinitelyOnSTMinstanceShowBlockedIndefinitelyOnSTMwhereshowsPrec_BlockedIndefinitelyOnSTM=showString"thread blocked indefinitely in an STM transaction"blockedIndefinitelyOnSTM::SomeExceptionblockedIndefinitelyOnSTM=toExceptionBlockedIndefinitelyOnSTMdataDeadlock=DeadlockderivingTypeableinstanceExceptionDeadlockinstanceShowDeadlockwhereshowsPrec_Deadlock=showString"<<deadlock>>"dataAssertionFailed=AssertionFailedStringderivingTypeableinstanceExceptionAssertionFailedinstanceShowAssertionFailedwhereshowsPrec_(AssertionFailederr)=showStringerrdataAsyncException=StackOverflow|HeapOverflow|ThreadKilled|UserInterruptderiving(Eq,Ord,Typeable)instanceExceptionAsyncExceptiondataArrayException=IndexOutOfBoundsString|UndefinedElementStringderiving(Eq,Ord,Typeable)instanceExceptionArrayExceptionstackOverflow,heapOverflow::SomeExceptionstackOverflow=toExceptionStackOverflowheapOverflow=toExceptionHeapOverflowinstanceShowAsyncExceptionwhereshowsPrec_StackOverflow=showString"stack overflow"showsPrec_HeapOverflow=showString"heap overflow"showsPrec_ThreadKilled=showString"thread killed"showsPrec_UserInterrupt=showString"user interrupt"instanceShowArrayExceptionwhereshowsPrec_(IndexOutOfBoundss)=showString"array index out of range".(ifnot(nulls)thenshowString": ".showStringselseid)showsPrec_(UndefinedElements)=showString"undefined array element".(ifnot(nulls)thenshowString": ".showStringselseid)dataExitCode=ExitSuccess|ExitFailureIntderiving(Eq,Ord,Read,Show,Typeable)instanceExceptionExitCodeioException::IOException->IOaioExceptionerr=throwIOerrioError::IOError->IOaioError=ioExceptiontypeIOError=IOExceptiondataIOException=IOError{ioe_handle::MaybeHandle,ioe_type::IOErrorType,ioe_location::String,ioe_description::String,ioe_errno::MaybeCInt,ioe_filename::MaybeFilePath}derivingTypeableinstanceExceptionIOExceptioninstanceEqIOExceptionwhere(IOErrorh1e1loc1str1en1fn1)==(IOErrorh2e2loc2str2en2fn2)=e1==e2&&str1==str2&&h1==h2&&loc1==loc2&&en1==en2&&fn1==fn2dataIOErrorType=AlreadyExists|NoSuchThing|ResourceBusy|ResourceExhausted|EOF|IllegalOperation|PermissionDenied|UserError|UnsatisfiedConstraints|SystemError|ProtocolError|OtherError|InvalidArgument|InappropriateType|HardwareFault|UnsupportedOperation|TimeExpired|ResourceVanished|InterruptedinstanceEqIOErrorTypewherex==y=getTagx==#getTagyinstanceShowIOErrorTypewhereshowsPrec_e=showString$caseeofAlreadyExists->"already exists"NoSuchThing->"does not exist"ResourceBusy->"resource busy"ResourceExhausted->"resource exhausted"EOF->"end of file"IllegalOperation->"illegal operation"PermissionDenied->"permission denied"UserError->"user error"HardwareFault->"hardware fault"InappropriateType->"inappropriate type"Interrupted->"interrupted"InvalidArgument->"invalid argument"OtherError->"failed"ProtocolError->"protocol error"ResourceVanished->"resource vanished"SystemError->"system error"TimeExpired->"timeout"UnsatisfiedConstraints->"unsatisified constraints"UnsupportedOperation->"unsupported operation"userError::String->IOErroruserErrorstr=IOErrorNothingUserError""strNothingNothinginstanceShowIOExceptionwhereshowsPrecp(IOErrorhdliotlocs_fn)=(casefnofNothing->casehdlofNothing->idJusth->showsPrecph.showString": "Justname->showStringname.showString": ").(caselocof""->id_->showStringloc.showString": ").showsPrecpiot.(casesof""->id_->showString" (".showStrings.showString")")assertError::Addr#->Bool->a->aassertErrorstrpredicatev|predicate=v|otherwise=throw(AssertionFailed(untanglestr"Assertion failed"))unsupportedOperation::IOErrorunsupportedOperation=(IOErrorNothingUnsupportedOperation"""Operation is not supported"NothingNothing)untangle::Addr#->String->Stringuntanglecodedmessage=location++": "++message++details++"\n"wherecoded_str=unpackCStringUtf8#coded(location,details)=case(spannot_barcoded_str)of{(loc,rest)->caserestof('|':det)->(loc,' ':det)_->(loc,"")}not_barc=c/='|'
[8]ページ先頭