4 ms·
This is what you generally see in larger haskell programs which might have a name clash (at least it's what I use): data F = F { fName :: String } data
by creichert 11y ago
This is what you generally see in larger haskell programs which might have a name clash (at least it's what I use):
data F = F { fName :: String }
data P = P { pName :: String }
- LeonidasXIV 11y agoYes, this is one of the cases where ML modules are elegant, since you can put the definition of the type into its own module, so it becomes F.t and P.t and you avoid field name clashes.