Blog Posts

HTTP APIs with WebGear

I recently released WebGear - a library to build HTTP APIs. While Haskell has a number of libraries and frameworks for building HTTP API servers, WebGear is somewhat unique in the design space. I will explain some interesting features of WebGear in this post.

PatternSynonyms for expressive code

PatternSynonyms is a very handy GHC extension to abstract away some implementation details of your data types and present a cleaner interface to the rest of the code.

Polysemy is fun! - Part 2

Continuing from part1, we figure out how to interpret effects in polysemy.

Polysemy is fun! - Part 1

This post is an introduction to polysemy - a new “effects” library that can be used in place of monad transformers. We’ll build a real-world application to understand how to use it to structure your code.