Remove IO related code from SemSyn.hs