Functor instance for the GHCi monad