Moving commands to Ghc monad