Seeking advice on which Haskell back end frameworks/libraries to use

I cannot recommend libraries for Haskell backends from production experience, but I spent a bit time the last weeks figuring the same thing out for me.

For me the most interesting web framework seems to be servant since it has great docs and seems to be rather complete for API development. It is also a nice gimmick that it can automatically generate Elm decoder / encoder for your API.

For the database I tried out HDBC and yeshql, since I need access to a weird database through odbc with a custom SQL dialect. I think I remember hearing good things about https://hackage.haskell.org/package/hasql when you’re using postgresql… Although these options are not ORMs.

Since I probably wouldn’t use GraphQL with servant, I haven’t explored this, but https://morpheusgraphql.com/ looks really interesting, just in case you haven’t seen it yet.

2 Likes