A REST-based device readings service in Haskell