Hi, I have a question!
Ketil Malde
ketil+haskell at ii.uib.no
Mon Jan 12 05:19:25 EST 2004
Derek Elkins <ddarius at hotpop.com> writes:
>> Either use a different name for your operator, or specify the "+" that
>> you want by writing "OperationTest.+" instead of "+".
> You can also hide the Prelude (+), though it is a somewhat useful
> function.
Wouldn't making Nat an instance of Num also work?
instance Num Nat where
-- the definition of (+) for Nat here
-kzm
--
If I haven't seen further, it is by standing in the footprints of giants
More information about the Haskell-Cafe
mailing list