attempt to build a simple rest api with haskell