Skip to content

Timing stats in GHCi don't work

The GHCi set +s flag doesn't give sensible timings:

  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.6, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base ... linking ... done.
[1 of 3] Compiling Primes           ( Primes.hs, interpreted )
[2 of 3] Compiling ContFrac         ( ContFrac.hs, interpreted )
[3 of 3] Compiling Euler44          ( Euler44.hs, interpreted )
Ok, modules loaded: Euler44, ContFrac, Primes.
*Euler44> :set +s
*Euler44> smallest
(2167,1020,2395,1912)
(0.02 secs, 910618996 bytes)
*Euler44>

The run actually took 23 seconds.

Reported by daniel.is.fischer@web.de

Edited by Simon Peyton Jones
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information