move ParseError to Class.hs