
10 Jan
2004
10 Jan
'04
1:12 a.m.
In article
But above source make an error like bellow
Reading file "g:\Haskell\OperationTest.hs": Dependency analysis ERROR "g:\Haskell\OperationTest.hs":8 - Ambiguous variable occurrence "+" *** Could refer to: OperationTest.+ Prelude.+
There's already a definition for (+) imported from the Prelude. When you write "Succ (m + n)" the interpreter doesn't know whether you mean the one you've just defined ("OperationTest.+") or the one imported from the Prelude ("Prelude.+"). -- Ashley Yakeley, Seattle WA