| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Testlib.App
Synopsis
- failApp :: HasCallStack => String -> App a
- readServiceConfig :: Service -> App Value
- readServiceConfig' :: String -> App Value
- localServiceDirectory :: FilePath -> String -> FilePath
- data Domain
- retryT :: App a -> App a
- liftBool :: Functor f => f Bool -> BoolT f
- unliftBool :: Functor f => BoolT f -> f Bool
- (&&~) :: App Bool -> App Bool -> App Bool
- (||~) :: App Bool -> App Bool -> App Bool
- type BoolT (f :: Type -> Type) = MaybeT f ()
Documentation
localServiceDirectory :: FilePath -> String -> FilePath Source #
Resolve a service's source directory relative to the local services root. Enterprise sources are provided by the protected submodule.
Constructors
| OwnDomain | |
| OtherDomain |
retryT :: App a -> App a Source #
Run an action, recoverAlling with exponential backoff (min step 8ms, total timeout
~15s). Search this package for examples how to use it.
Ideally, this will be the only thing you'll ever need from the retry package when writing integration tests. If you are unhappy with it, please consider making it more general in a backwards-compatible way so everybody can benefit.