A simple monitoring tool, written as an exercise in Haskell