More advanced example for Scotty web framework (Haskell).