@hackage hspec-expectations-match0.1.1.0

An hspec expectation that asserts a value matches a pattern.

This package provides expectations for use with hspec that use Template Haskell to assert that a value matches a particular pattern. The primary expectation is shouldMatch:

>>>>>>

Additionally, any bindings created by the pattern will be returned if the pattern is successfully matched, making it easier to extract the result of some assertion and use it to make further assertions.

>>>>>>