liblawless-0.26.0: Prelude based on protolude for GHC 8 and beyond.

Copyright© 2017 All rights reserved.
LicenseGPL-3
MaintainerEvan Cofsky <evan@theunixman.com>
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Environment

Description

 

Synopsis

Documentation

environment :: MonadIO m => Lens EnvName (m ()) (m (Maybe EnvValue)) EnvValue Source #

Lens for the system environment.

lens ∷ Functor f => (s -> a) -> (s -> b -> t) -> (a -> f b) -> s -> f t

Lens s t a b = Functor f ⇒ (a → f b) → s → f t

lookupEnv s → a: EnvName → m (Maybe EnvValue)

setEnv s → b → t: EnvName → EnvValue → m ()

s: EnvName t: m () a: m (Maybe EnvValue) b: EnvValue

data Arg Source #

Instances

Eq Arg Source # 

Methods

(==) :: Arg -> Arg -> Bool #

(/=) :: Arg -> Arg -> Bool #

Ord Arg Source # 

Methods

compare :: Arg -> Arg -> Ordering #

(<) :: Arg -> Arg -> Bool #

(<=) :: Arg -> Arg -> Bool #

(>) :: Arg -> Arg -> Bool #

(>=) :: Arg -> Arg -> Bool #

max :: Arg -> Arg -> Arg #

min :: Arg -> Arg -> Arg #

Show Arg Source # 

Methods

showsPrec :: Int -> Arg -> ShowS #

show :: Arg -> String #

showList :: [Arg] -> ShowS #

Printable Arg Source # 

Methods

print :: Printer p => Arg -> p #

IsText Arg Source # 

args :: MonadIO m => m [Arg] Source #