lens-5.2.3: Lenses, Folds and Traversals

Copyright | (C) 2012-2016 Edward Kmett
License | BSD-style (see the file LICENSE)
Maintainer | Edward Kmett <ekmett@gmail.com>
Stability | experimental
Portability | Rank2Types
Safe Haskell | Safe-Inferred
Language | Haskell2010

System.IO.Error.Lens

Contents

- IOException Lenses
- IOErrorType Prisms

Description

Synopsis

- location :: Lens' IOException String
- description :: Lens' IOException String
- handle :: Lens' IOException (Maybe Handle)
- fileName :: Lens' IOException (Maybe FilePath)
- errno :: Lens' IOException (Maybe CInt)
- errorType :: Lens' IOException IOErrorType
- _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 ()

# IOException Lenses

location :: Lens' IOException String Source #

Where the error happened.

description :: Lens' IOException String Source #

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 IOErrorType Source #

What type of error it is

# IOErrorType Prisms

_AlreadyExists :: Prism' IOErrorType () Source #

_NoSuchThing :: Prism' IOErrorType () Source #

_ResourceBusy :: Prism' IOErrorType () Source #

_ResourceExhausted :: Prism' IOErrorType () Source #

_EOF :: Prism' IOErrorType () Source #

_IllegalOperation :: Prism' IOErrorType () Source #

_PermissionDenied :: Prism' IOErrorType () Source #

_UserError :: Prism' IOErrorType () Source #

_UnsatisfiedConstraints :: Prism' IOErrorType () Source #

_SystemError :: Prism' IOErrorType () Source #

_ProtocolError :: Prism' IOErrorType () Source #

_OtherError :: Prism' IOErrorType () Source #

_InvalidArgument :: Prism' IOErrorType () Source #

_InappropriateType :: Prism' IOErrorType () Source #

_HardwareFault :: Prism' IOErrorType () Source #

_UnsupportedOperation :: Prism' IOErrorType () Source #

_TimeExpired :: Prism' IOErrorType () Source #

_ResourceVanished :: Prism' IOErrorType () Source #

_Interrupted :: Prism' IOErrorType () Source #