Hi, I have a question!
NamO
kang at archi.cse.cau.ac.kr
Sat Jan 10 21:04:45 EST 2004
Mmmmmmmm.........
and then How can I solve this problem?
Would you say the solution.
Thank you.
"Ashley Yakeley" <ashley at semantic.org> wrote in message
news:ashley-7A3E01.22122409012004 at sea.gmane.org...
> 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