
19 Aug
2011
19 Aug
'11
4:58 p.m.
On Fri, Aug 19, 2011 at 1:45 PM, Thomas DuBuisson
This is not a valid data declaration. You can't have a "Float" field without any constructor name and have it still of type
And the reason why it accepts 'data MathExpr = Float', is because data constructors and types live in separate namespaces. There is already a type called Float in the Prelude, but there is no 'Float' data constructor. (Just pointing this out in case it's not obvious!) Jason