[cvs-nhc98] patch applied (hat): Hat-Lib: ensure that ghc can catch all kinds of error like nhc98.