haskell/CmdShell : a not-quite working monad.