lens-4.0.1: Lenses, Folds and Traversals

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

System.Exit.Lens

Description

These prisms can be used with the combinators in Control.Exception.Lens.

Synopsis

Documentation

class AsExitCode p f t whereSource

Exit codes that a program can return with:

_ExitFailure :: (AsExitCode p f t, Choice p, Applicative f) => Optic' p f t IntSource

indicates program failure with an exit code. The exact interpretation of the code is operating-system dependent. In particular, some values may be prohibited (e.g. 0 on a POSIX-compliant system).

 _ExitFailure :: Prism' ExitCode      Int
 _ExitFailure :: Prism' SomeException Int

_ExitSuccess :: (AsExitCode p f t, Choice p, Applicative f) => Optic' p f t ()Source

indicates successful termination;

 _ExitSuccess :: Prism' ExitCode      ()
 _ExitSuccess :: Prism' SomeException ()