HMock: Flexible and expressive mocking in Haskell

Hey everyone! At Zurihac this weekend, I worked on and made a first Hackage release of HMock. If you’ve ever wondered how or whether you can test with mocks in Haskell, this might be interesting to you. Still pretty new, but I think on the fundamentals, it compares favorably with the best-in-class mock frameworks in mainstream programming languages I’ve used, like Mockito for Java and GoogleMock for C++.

Details in my blog post: https://cdsmithus.medium.com/hmock-first-rate-mocks-in-haskell-e59d7c3b066c

8 Likes