lens-3.10: Lenses, Folds and Traversals

PortabilityRank2Types
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellNone

System.IO.Error.Lens

Contents

Description

 

Synopsis

IOException Lenses

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

Where the error happened.

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

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

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)

IOErrorType Prisms