Re: Optimizations done by typechecker and desugarer

2007-04-04 Thread Simon Marlow
Simon Peyton-Jones wrote: | I noticed that the typechecker and desugarer try to do some minor | optimizations here and there. The handling of overloaded literals | recently caught my attention (see shortCutIntLit in typecheck/Inst and | tidyNPat in deSugar/MatchLit). | | Are these just there as a

RE: Optimizations done by typechecker and desugarer

2007-04-04 Thread Simon Peyton-Jones
| I noticed that the typechecker and desugarer try to do some minor | optimizations here and there. The handling of overloaded literals | recently caught my attention (see shortCutIntLit in typecheck/Inst and | tidyNPat in deSugar/MatchLit). | | Are these just there as a hangover from before the si

Optimizations done by typechecker and desugarer

2007-04-03 Thread Brian Alliet
I noticed that the typechecker and desugarer try to do some minor optimizations here and there. The handling of overloaded literals recently caught my attention (see shortCutIntLit in typecheck/Inst and tidyNPat in deSugar/MatchLit). Are these just there as a hangover from before the simplifier w