I started studying haskell today for school, and I am having a problem with a function. I do not understand why this is not in the field.
Here is the code:
ff :: [[Char]] -> [[Char]] -> [Char] ff AB = [[x !! 0, y !! 1] | x <- A, y <- B, (x !! 1) == (y !! 0)]
And errors:
md31.hs:2:4: Not in scope: data constructor `A' md31.hs:2:6: Not in scope: data constructor `B' md31.hs:2:38: Not in scope: data constructor `A' md31.hs:2:46: Not in scope: data constructor `B'
Thanks in advance:)
Trac3 source share