> $ cat tmp.lhs
> > module Main( main ) where
> > main = putStr $ show q
> > where q = quot 1 0
> $ ghc-4.02 tmp.lhs
> ghc-4.02: module version changed to 176; reason: usages changed
> 1006 swift ~/ghc/constraints/mixed
> $ a.out
>
> Fail: Prelude.Integral.quot{Integer}: divide by 0
> 1007 swift ~/ghc/constraints/mixed
> $ ghc-4.04 tmp.lhs
> ghc-4.04: module version changed to 177; reason: usages changed
> 1008 swift ~/ghc/constraints/mixed
> $ a.out
> Arithmetic Exception (core dumped)
I'm afriad that one's my fault; the definition of quot for Integers changed
in 4.04. Anyway, testing for divide by zero isn't required by the Haskell
report.
Cheers,
Simon