testcontainers-0.4.0.0: Docker containers for your integration tests.
Safe HaskellSafe-Inferred
LanguageHaskell2010

TestContainers.Monad

Synopsis

Monad

type MonadDocker m = m ~ TestContainer Source #

Docker related functionality is parameterized over this Monad. Since 0.4.0.0 this is just a type alias for m ~ TestContainer.

Since: 0.1.0.0

data TestContainer a Source #

The heart and soul of the testcontainers library.

Since: 0.4.0.0

Instances

Instances details
MonadFix TestContainer Source # 
Instance details

Defined in TestContainers.Monad

Methods

mfix :: (a -> TestContainer a) -> TestContainer a #

MonadIO TestContainer Source # 
Instance details

Defined in TestContainers.Monad

Methods

liftIO :: IO a -> TestContainer a #

Applicative TestContainer Source # 
Instance details

Defined in TestContainers.Monad

Functor TestContainer Source # 
Instance details

Defined in TestContainers.Monad

Methods

fmap :: (a -> b) -> TestContainer a -> TestContainer b #

(<$) :: a -> TestContainer b -> TestContainer a #

Monad TestContainer Source # 
Instance details

Defined in TestContainers.Monad

MonadCatch TestContainer Source # 
Instance details

Defined in TestContainers.Monad

Methods

catch :: Exception e => TestContainer a -> (e -> TestContainer a) -> TestContainer a #

MonadMask TestContainer Source # 
Instance details

Defined in TestContainers.Monad

MonadThrow TestContainer Source # 
Instance details

Defined in TestContainers.Monad

Methods

throwM :: Exception e => e -> TestContainer a #

MonadResource TestContainer Source # 
Instance details

Defined in TestContainers.Monad

MonadUnliftIO TestContainer Source # 
Instance details

Defined in TestContainers.Monad

Methods

withRunInIO :: ((forall a. TestContainer a -> IO a) -> IO b) -> TestContainer b #

MonadReader Config TestContainer Source # 
Instance details

Defined in TestContainers.Monad

Monoid a => Monoid (TestContainer a) Source # 
Instance details

Defined in TestContainers.Monad

Semigroup a => Semigroup (TestContainer a) Source # 
Instance details

Defined in TestContainers.Monad

runTestContainer :: Config -> TestContainer a -> IO a Source #

Run a TestContainer action. Any container spun up during the computation are guaranteed to be shutdown and cleaned up once this function returns.

Since: 0.4.0.0

Runtime configuration

data Config Source #

Configuration for defaulting behavior.

Since: 0.2.0.0

Constructors

Config 

Fields

Instances

Instances details
MonadReader Config TestContainer Source # 
Instance details

Defined in TestContainers.Monad