hspec-expectations-pretty-diff-0.7.2.1: Catchy combinators for HUnit

Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Hspec.Expectations.Contrib

Contents

Description

Experimental combinators, that may become part of the main distribution, if they turn out to be useful for a wider audience.

Synopsis

Predicates

(useful in combination with shouldSatisfy)

isLeft :: Either a b -> Bool

Return True if the given value is a Left-value, False otherwise.

Since: 4.7.0.0

isRight :: Either a b -> Bool

Return True if the given value is a Right-value, False otherwise.

Since: 4.7.0.0