Hi,
I've defined the following datatype with haskell
data Graph a b = Empty | Context a b Graph a b
But I am having the error message: parse error on input `' .
I am wondering what it is wrong with my definition. How can I fix this?
Thanks in advance.
Kind regards
Am Samstag 25 April 2009 19:29:30 schrieb siso dagbovie:
Hi,
I've defined the following datatype with haskell
data Graph a b = Empty | Context a b Graph a b
But I am having the error message: parse error on input `' .
I am wondering what it is wrong with my definition. How can I fix
siso dagbovie wrote:
I've defined the following datatype with haskell
data Graph a b = Empty | Context a b Graph a b
But I am having the error message: parse error on input `' .
I am wondering what it is wrong with my definition. How can I fix this?
Constructors have to start with a
Hi everyone.
I am new to this Forum, Haskell and i am german, so i am sorry for noob
failures or spelling mistakes.
I am currently learning for an informatic exam (11th class) and i tried to
code a function to sum a polynom with a pair of polynoms... (I actually want
to to code a polynomdivision
You neglected a ) - remember to count your parentheses in future when
you get an error directly after a parenthesised expression.
--
Robin
On Thu, 31 May 2007 08:09:23 -0700 (PDT)
Akijmo [EMAIL PROTECTED] wrote:
Hi everyone.
I am new to this Forum, Haskell and i am german, so i am sorry
The second argument of the second line of the definition does not match
the expected type. (Polynom,Polynom) is a tuple, not a list, so
[]::(a,a) is not well typed for any a.
Dan
Akijmo wrote:
Hi everyone.
I am new to this Forum, Haskell and i am german, so i am sorry for noob
failures or
thx much green... this helped for the parser failure.
Dan you were right too, cause now i got the interfering types [(Int,Int)]
and Polynom for line 2.
But i fixed this by replacing it with ([],[])
So thx much guys :D
greenrd wrote:
You neglected a ) - remember to count your parentheses in