polysemy-test-0.1.0.0: Polysemy effects for testing
Safe HaskellNone
LanguageHaskell2010

Polysemy.Test.Assert

Documentation

data ValueIsNothing Source #

Constructors

ValueIsNothing 

Instances

Instances details
Show ValueIsNothing Source # 
Instance details

Defined in Polysemy.Test.Assert

assertRight :: Eq a => Show a => Show e => Monad m => a -> Either e a -> TestT m () Source #

assertJust :: Eq a => Show a => Monad m => a -> Maybe a -> TestT m () Source #

evalMaybe :: Monad m => Maybe a -> TestT m a Source #

assert :: (MonadTest m, HasCallStack) => Bool -> m () #

evalEither :: (MonadTest m, Show x, HasCallStack) => Either x a -> m a #

(===) :: (MonadTest m, Eq a, Show a, HasCallStack) => a -> a -> m () #