Make two type defaults explicit
authorsimonpj@microsoft.com <unknown>
Fri, 29 May 2009 08:35:49 +0000 (08:35 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 29 May 2009 08:35:49 +0000 (08:35 +0000)
commit606ec04189d5038f6b5a6cc09cfe2e1ee10f8dad
treefc5bae4bb0a8d5f4f8f09d881443db6e465f24af
parent5987f577cbf4cc8d9686c74c3be212f4eee618dc
Make two type defaults explicit

Now that -Werror rejects programs that use silent type-class defaulting,
we must commit in the source code.

I've used Double in CPUTime, which is the same as was picked automatically
before, but I expect Float would be ok.

   realToInteger :: Real a => a -> Integer
   realToInteger ct = round (realToFrac ct :: Double)

In GHC.Float I used Float (rather that than the auto-picked Double)
because I'm pretty certain it has enough precision.

-- f :: Integer, log :: Float -> Float,
        --               ceiling :: Float -> Int
        ceiling ((log (fromInteger (f+1) :: Float) +
GHC/Float.lhs
System/CPUTime.hsc