Copyright | (c) 2020-2021 Tim Emiola |
---|---|
License | BSD3 |
Maintainer | Tim Emiola <[email protected] > |
Safe Haskell | None |
Language | Haskell2010 |
System.TmpProc.Docker.Postgres
Description
Provides an instance of Proc
that launches postgres
as a tmp proc
.
The instance this module provides can be used in integration tests as is.
It's also possible to write other instances that launch postgres
in different
ways; for those, this instance can be used as a reference example.
Synopsis
- newtype TmpPostgres = TmpPostgres [Text]
- aProc :: HList '[TmpPostgres]
- aHandle :: IO (HandlesOf '[TmpPostgres])
- only :: x -> HList '[x]