Migrating from HMock 0.4 to 0.5 - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Magnus Therning

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.

Magnus Therning

I found the solution to this. The predicates have been moved to an external package.