lens-3.10: Lenses, Folds and Traversals

Portability | Rank2Types
Stability | experimental
Maintainer | Edward Kmett <ekmett@gmail.com>
Safe Haskell | None

System.IO.Error.Lens

Contents

- IOException Lenses
- IOErrorType Prisms

Description

Synopsis

- location :: (AsIOException (->) f t, Functor f) => LensLike' f t String
- description :: (AsIOException (->) f t, Functor f) => LensLike' f t String
- handle :: (AsIOException (->) f t, Functor f) => LensLike' f t (Maybe Handle)
- fileName :: (AsIOException (->) f t, Functor f) => LensLike' f t (Maybe FilePath)
- errno :: (AsIOException (->) f t, Functor f) => LensLike' f t (Maybe CInt)
- errorType :: (AsIOException (->) f t, Functor f) => LensLike' f t IOErrorType
- _Interrupted :: Prism' IOErrorType ()
- _ResourceVanished :: Prism' IOErrorType ()
- _TimeExpired :: Prism' IOErrorType ()
- _UnsupportedOperation :: Prism' IOErrorType ()
- _HardwareFault :: Prism' IOErrorType ()
- _InappropriateType :: Prism' IOErrorType ()
- _InvalidArgument :: Prism' IOErrorType ()
- _OtherError :: Prism' IOErrorType ()
- _ProtocolError :: Prism' IOErrorType ()
- _SystemError :: Prism' IOErrorType ()
- _UnsatisfiedConstraints :: Prism' IOErrorType ()
- _UserError :: Prism' IOErrorType ()
- _PermissionDenied :: Prism' IOErrorType ()
- _IllegalOperation :: Prism' IOErrorType ()
- _EOF :: Prism' IOErrorType ()
- _ResourceExhausted :: Prism' IOErrorType ()
- _ResourceBusy :: Prism' IOErrorType ()
- _NoSuchThing :: Prism' IOErrorType ()
- _AlreadyExists :: Prism' IOErrorType ()

# IOException Lenses

location :: (AsIOException (->) f t, Functor f) => LensLike' f t String Source

Where the error happened.

     location :: Lens'      IOException   String
     location :: Traversal' SomeException String

description :: (AsIOException (->) f t, Functor f) => LensLike' f t String Source

Error type specific information.

     description :: Lens'      IOException   String
     description :: Traversal' SomeException String

handle :: (AsIOException (->) f t, Functor f) => LensLike' f t (Maybe Handle)Source

The handle used by the action flagging this error.

     handle :: Lens'      IOException   (Maybe Handle)
     handle :: Traversal' SomeException (Maybe Handle)

fileName :: (AsIOException (->) f t, Functor f) => LensLike' f t (Maybe FilePath)Source

`fileName` the error is related to.

     fileName :: Lens'      IOException   (Maybe FilePath)
     fileName :: Traversal' SomeException (Maybe FilePath)

errno :: (AsIOException (->) f t, Functor f) => LensLike' f t (Maybe CInt)Source

`errno` leading to this error, if any.

     errno :: Lens'      IOException   (Maybe FilePath)
     errno :: Traversal' SomeException (Maybe FilePath)

errorType :: (AsIOException (->) f t, Functor f) => LensLike' f t IOErrorType Source

What type of error it is

     errorType :: Lens'      IOException   IOErrorType
     errorType :: Traversal' SomeException IOErrorType

# IOErrorType Prisms

_Interrupted :: Prism' IOErrorType ()Source

_ResourceVanished :: Prism' IOErrorType ()Source

_TimeExpired :: Prism' IOErrorType ()Source

_UnsupportedOperation :: Prism' IOErrorType ()Source

_HardwareFault :: Prism' IOErrorType ()Source

_InappropriateType :: Prism' IOErrorType ()Source

_InvalidArgument :: Prism' IOErrorType ()Source

_OtherError :: Prism' IOErrorType ()Source

_ProtocolError :: Prism' IOErrorType ()Source

_SystemError :: Prism' IOErrorType ()Source

_UnsatisfiedConstraints :: Prism' IOErrorType ()Source

_UserError :: Prism' IOErrorType ()Source

_PermissionDenied :: Prism' IOErrorType ()Source

_IllegalOperation :: Prism' IOErrorType ()Source

_EOF :: Prism' IOErrorType ()Source

_ResourceExhausted :: Prism' IOErrorType ()Source

_ResourceBusy :: Prism' IOErrorType ()Source

_NoSuchThing :: Prism' IOErrorType ()Source

_AlreadyExists :: Prism' IOErrorType ()Source