lens-5.1: Lenses, Folds and Traversals
Copyright(C) 2013-16 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityprovisional
PortabilityControl.Exception
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Exit.Lens

Description

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

Synopsis

Documentation

class AsExitCode t where Source #

Exit codes that a program can return with:

Instances

Instances details
AsExitCode ExitCode Source # 
Instance details

Defined in System.Exit.Lens

AsExitCode SomeException Source # 
Instance details

Defined in System.Exit.Lens

_ExitFailure :: AsExitCode t => Prism' t Int Source #

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 t => Prism' t () Source #

indicates successful termination;

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

pattern ExitFailure_ :: AsExitCode s => Int -> s Source #

pattern ExitSuccess_ :: AsExitCode s => s Source #