Migrating from HMock 0.4 to 0.5

In 0.4 there’s the module Test.HMock.Predicates that allowed me to write

expect $ MHttpPost_ (eq "url") (typed @ByteString anything) |-> (status201, "result")

in 0.5 that module is gone and I’m struggling with how to translate the above code. A quick search online didn’t yield anything, so if has pointers out there I’d be very happy.

1 Like

There’s a predicates package now which hmock depends on and should fill your need.

1 Like