lens-5.2.3: Lenses, Folds and Traversals
Copyright(C) 2012-2016 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
PortabilityRank2Types
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.IO.Error.Lens

Description

 
Synopsis

IOException Lenses

location :: Lens' IOException String #

Where the error happened.

description :: Lens' IOException String #

Error type specific information.

handle :: Lens' IOException (Maybe Handle) #

The handle used by the action flagging this error.

fileName :: Lens' IOException (Maybe FilePath) #

fileName the error is related to.

errno :: Lens' IOException (Maybe CInt) #

errno leading to this error, if any.

errorType :: Lens' IOException IOErrorType #

What type of error it is

IOErrorType Prisms

_AlreadyExists :: Prism' IOErrorType () #

_NoSuchThing :: Prism' IOErrorType () #

_ResourceBusy :: Prism' IOErrorType () #

_ResourceExhausted :: Prism' IOErrorType () #

_EOF :: Prism' IOErrorType () #

_IllegalOperation :: Prism' IOErrorType () #

_PermissionDenied :: Prism' IOErrorType () #

_UserError :: Prism' IOErrorType () #

_UnsatisfiedConstraints :: Prism' IOErrorType () #

_SystemError :: Prism' IOErrorType () #

_ProtocolError :: Prism' IOErrorType () #

_OtherError :: Prism' IOErrorType () #

_InvalidArgument :: Prism' IOErrorType () #

_InappropriateType :: Prism' IOErrorType () #

_HardwareFault :: Prism' IOErrorType () #

_UnsupportedOperation :: Prism' IOErrorType () #

_TimeExpired :: Prism' IOErrorType () #

_ResourceVanished :: Prism' IOErrorType () #

_Interrupted :: Prism' IOErrorType () #