[Haskell-beginners] help writing a simple api which queries for a resource and displays this info