Test.Hspec.Expectations

Setting expectations

type Expectation

expectationFailure

shouldBe

shouldSatisfy

shouldContain

shouldReturn

Expecting exceptions

shouldThrow

Selecting exceptions

type Selector a

Predefined type-based selectors

anyException

anyErrorCall

anyIOException

anyArithException

Combinators for defining value-based selectors

errorCall