I have created a data group:
data Cars = vw | audi | ford
data Engine = TDI | TSI
I want to use these in a function/list comprehension. To show combinations I have this:
[(x,y) | x <- Cars , y <- Engine]
But I'mm a little bit lost on how to use the data within a function.
I get this error:
Not in scope: data constructor `Cars'