Generalized the IO instance for MonadSync.