- What is Servant and how is it different than Happstack?
-
Per servant.dev, servant is a set of packages for declaring web APIs at the type-level.
-
Per Cameron, super powerful and type safe, yet fairly confusing way to write APIs.
-
It is different than happstack in quite a few ways, but the biggest difference to us is the ability to generate swagger documentation as well as how type safe it is. A large place where Happstack fell short for us was the fact that we didn't have type safety in our routes. What do you mean by that?
-- sample route from happstack
-
dirs "api/consumer-web/v2/certificate/"