[Haskell-cafe] Arbitrary precision?
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Sun May 6 13:29:01 EDT 2007
On May 6, 2007, at 12:59 , Andrew Coppin wrote:
> OOC, is there a reason why you can't just write "5%10"?
Prelude> :t 5%10
<interactive>:1:1: Not in scope: `%'
Prelude> :m +Data.Ratio
Prelude Data.Ratio> :t 5%10
5%10 :: (Integral t) => Ratio t
Prelude Data.Ratio>
I'm actually a bit surprised that's not in Prelude.
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
More information about the Haskell-Cafe
mailing list