
16 Nov
2007
16 Nov
'07
10:40 a.m.
On Nov 16, 2007 9:44 AM, PR Stanley
Hi I understand 2%4 will construct a fraction in Haskell. I've tried this in GHCI but got an error message. Is there such an operator in Prelude and if so how is it applied? Cheers, Paul
It's in Data.Ratio. Prelude> :m +Data.Ratio Prelude Data.Ratio> 2%4 1%2 -Brent