messing about with shell scripting in haskell