cqrs-testkit-0.10.0: Command-Query Responsibility Segregation Test Support

Safe HaskellSafe
LanguageHaskell2010

Data.CQRS.Test.Internal.TestKitSettings

Synopsis

Documentation

data TestKitSettings a ctx Source

Test kit settings with a test context of type ctx.

Constructors

TestKitSettings 

Fields

tksSetUp :: IO a
 
tksTearDown :: a -> IO ()
 
tksMakeContext :: a -> IO ctx
 

mkBracket :: TestKitSettings a ctx -> (a -> IO b) -> IO b Source

Create a "bracket" for a computation which ensures that the setUp and tearDown phases happen no matter what else happens during the computation.