Hi, I have a question!

Ashley Yakeley ashley at semantic.org
Fri Jan 9 22:12:24 EST 2004

In article <btnthd$blj$1 at sea.gmane.org>,
 "NamO" <kang at archi.cse.cau.ac.kr> wrote:

> 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

More information about the Haskell-Cafe mailing list