lens-4.5: Lenses, Folds and Traversals

PortabilityRank2Types
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellSafe-Inferred

System.IO.Error.Lens

Contents

Description

 

Synopsis

IOException Lenses

location :: Lens' IOException StringSource

Where the error happened.

description :: Lens' IOException StringSource

Error type specific information.

handle :: Lens' IOException (Maybe Handle)Source

The handle used by the action flagging this error.

fileName :: Lens' IOException (Maybe FilePath)Source

fileName the error is related to.

errno :: Lens' IOException (Maybe CInt)Source

errno leading to this error, if any.

errorType :: Lens' IOException IOErrorTypeSource

What type of error it is

IOErrorType Prisms

_AlreadyExists :: Prism' IOErrorType ()Source

_NoSuchThing :: Prism' IOErrorType ()Source

_ResourceBusy :: Prism' IOErrorType ()Source

_EOF :: Prism' IOErrorType ()Source

_UserError :: Prism' IOErrorType ()Source

_SystemError :: Prism' IOErrorType ()Source

_ProtocolError :: Prism' IOErrorType ()Source

_OtherError :: Prism' IOErrorType ()Source

_InvalidArgument :: Prism' IOErrorType ()Source

_HardwareFault :: Prism' IOErrorType ()Source

_TimeExpired :: Prism' IOErrorType ()Source

_Interrupted :: Prism' IOErrorType ()Source