lens-3.7.4: Lenses, Folds and Traversals

PortabilityControl.Exception
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellTrustworthy

Control.Exception.Lens

Description

 

Synopsis

Documentation

exception :: Exception a => Simple Prism SomeException aSource

Traverse the strongly typed Exception contained in SomeException where the type of your function matches the desired Exception.

 exception :: (Applicative f, Exception a, Exception b)
           => (a -> f b) -> SomeException -> f SomeException