First, I'd like to thank all who helped me out on the previous couple
of problems I was having.  I'm still having problems, this time much more
basic, and probably quite silly on my part, but I just don't get it.

        Of course, I can easily use the +, *, and - operators with any type of
number, but now I'm trying to use div, mod, quot, and rem.  The Haskell manual
I have indicates they should work with Integrals, but I get the following:

> 4 div 2;
[56] Not an instance Num ((a -> a -> a) -> b) in  fromInteger 4I div


> 4 mod 2;
[56] Not an instance Num ((a -> a -> a) -> b) in  fromInteger 4I mod


> 4 quot 2;
[56] Not an instance Num ((a -> a -> a) -> b) in  fromInteger 4I quot


> 4 rem 2;
[56] Not an instance Num ((a -> a -> a) -> b) in  fromInteger 4I rem

I just can't get these to work.  Of course, / seems to work for both integers
and floating point, but the integer division operators seem, well, broken.
I'm using "interactive Haskell B. version 0.999.7 SPARC 1994 Oct 17" in case
it matters.

                                                  Big Al the Devil's Pal!!
                                                     __   __            
                                                    /  `-' /          ,,
                                                    |[====|||||||||||[::}
                                                    \__.-._\          ``


Reply via email to