[Haskell-cafe] Names for pretty-printing combinators

Henning Thielemann schlepptop at henning-thielemann.de
Thu Jun 2 23:28:03 CEST 2011

Casey McCann schrieb:
> One drastic approach I've used in personal libraries--operator-heavy
> EDSLs specifically--is to define everything first with alphanumeric
> names, then put operators in their own modules. In some cases I'd have
> three such modules: One providing a minimal set of operators that don't
> clash with anything significant, one providing a larger set of operators
> that clash with one or more common modules (often deliberately, e.g.
> duplicating Arrow combinators for some type with similar semantics but
> no valid Arrow instance), and one providing a bunch of gratuitous
> Unicode operators that look pretty in my code editor but I don't know
> how to type in GHCi.

I use explicit imports in order to avoid infix operator clashes.

More information about the Haskell-Cafe mailing list