Mocking HTTP in Haskell — A Clean Approach with Typeclasses

Testing code that makes HTTP calls is tedious in most languages. In Haskell it has an extra wrinkle: the http-simple library gives you an…