[Haskell-cafe] The percent operator

Philip Armstrong phil at kantaka.co.uk
Fri Nov 16 09:58:39 EST 2007

On Fri, Nov 16, 2007 at 02:44:33PM +0000, PR Stanley wrote:
> 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?

It's not in the Prelude, it's in the Ratio module IIRC.


http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt

More information about the Haskell-Cafe mailing list