weird floating point exception with -Rghc-timing

Hal Daume III hdaume@ISI.EDU
Mon, 19 Aug 2002 08:39:30 -0700 (PDT)


It seems that if compilation is not required, or if compilation is very
fast, ghc -Rghc-timing will throw up a Floating point exception:

[hdaume@hal3 timing]$ ls
Timing.hs
[hdaume@hal3 timing]$ cat Timing.hs
module Timing where

timing = undefined

[hdaume@hal3 timing]$ ghc -Rghc-timing Timing.hs -c
<<ghc: 9358352 bytes, Floating point exception
[hdaume@hal3 timing]$ ls
Timing.hi  Timing.hs  Timing.o
[hdaume@hal3 timing]$ rm *.hi *.o
[hdaume@hal3 timing]$ ghc Timing.hs -c
[hdaume@hal3 timing]$ ls
Timing.hi  Timing.hs  Timing.o
[hdaume@hal3 timing]$ 

Am I right or is something else going on here...?

--
Hal Daume III

 "Computer science is no more about computers    | hdaume@isi.edu
  than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume