[Haskell-cafe] Data constructors

Mark Carroll mark at chaos.x-philes.com
Sun Apr 25 13:25:29 EDT 2004

I keep running into annoyance in having to name data constructors
differently if they're for different types if they're in the same module
or something. I wish that something like some Type.Constructor syntax
worked in order to disambiguate. Or, better still, I have that problem
with function names too (e.g. Data.List.union, Data.Set.union, IIRC) and
it occurs to me that a lot of this can be resolved automatically because
the types only make sense with one of the choices.

I'm not really proposing any changes; more, I'm wondering what others'
thinking is about this sort of thing - what annoys them, how they get
around it, etc.

-- Mark

More information about the Haskell-Cafe mailing list