Fix bug in cast optimisation; fixes Trac #995
authorsimonpj@microsoft.com <unknown>
Wed, 3 Jan 2007 15:35:30 +0000 (15:35 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 3 Jan 2007 15:35:30 +0000 (15:35 +0000)
commit34ed7e85106d75a3e723d248c98b35df134f5022
treeda008c22d1425d5c9ceb7dd42523b6841d66c2eb
parente69d9f497bac804308d539acc644069d0c06887d
Fix bug in cast optimisation; fixes Trac #995

There was a plain bug in the cast-optimiation code -- a call to
splitCoercionKind_maybe instead of coercionKind!  Result was that
we missed useful opportunities to move casts around.  Trac #995
is an example, but I bet there are more.
compiler/simplCore/Simplify.lhs