refactor: move pprintClosureCommand out of the GHCi monad