test-sandbox-0.1.3: Sandbox for system tests

Safe HaskellNone
LanguageHaskell2010

Test.Sandbox.Internals

Synopsis

Documentation

runExceptT' :: ExceptT e m a -> m (Either e a) Source

type Port = Int Source

whenM :: Monad m => m Bool -> m () -> m () Source

setVariable Source

Arguments

:: Serialize a 
=> String

Variable key for future reference

-> a

Variable value

-> Sandbox a 

Sets a custom variable in the sandbox monad.

checkVariable Source

Arguments

:: String

Variable key

-> Sandbox Bool 

Checks that a custom sandbox variable is set.

getVariable Source

Arguments

:: Serialize a 
=> String

Variable key

-> a

Default value if not found

-> Sandbox a 

Returns the value of a previously set sandbox variable (or a provided default value if unset)

unsetVariable Source

Arguments

:: String

Variable key

-> Sandbox () 

Unsets a custom variable.