[Haskell-cafe] Arbitrary precision?

Andrew Coppin andrewcoppin at btinternet.com
Sun May 6 13:59:24 EDT 2007


Brandon S. Allbery KF8NH 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.

Likewise...

Oh, by the way, thanks for the extra syntax. It's really annoying having 
to locate Notepad.exe on the start menu, type "import Blah", save it as 
"Thing.hs", open Windoze Explorer, locate Thing.hs, and then 
double-click it just so that I can try stuff out in GHCi...



More information about the Haskell-Cafe mailing list