[Haskell-cafe] 'data' syntax - a suggestion

Thomas Conway drtomc at gmail.com
Thu Sep 27 05:18:14 EDT 2007

On 9/27/07, ok <ok at cs.otago.ac.nz> wrote:
> I have often found myself wishing for a small extension to the syntax of
> Haskell 'data' declarations.  It goes like this:
    ['where' clause to allow locally defined names in type declarations]


Quite a few times I've found myself declaring type synonyms for this
reason, but you end up  polluting the global namespace.

+1 vote.

Thomas Conway
drtomc at gmail.com

Silence is the perfectest herald of joy:
I were but little happy, if I could say how much.

More information about the Haskell-Cafe mailing list