[Haskell-cafe] data constructor names

Tom Ellis tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Sat Jun 22 13:15:07 CEST 2013


On Sat, Jun 22, 2013 at 04:26:14AM -0500, Brian Lewis wrote:
> Say you write
> data Callback = Error ... | ...
[...]
> 
> Then, later, you write
> data Error = ...
[...]
> 
> They're both good names, but there's a conflict.

What do you mean by a conflict?  That's fine as far as the compiler is
concerned because constructors live in a different namespace from types.

If you meant it will be too confusing for the programmer that's fair enough.

Tom



More information about the Haskell-Cafe mailing list