haskell / fgl

A Functional Graph Library for Haskell
http://hackage.haskell.org/package/fgl
Other
184 stars 54 forks source link

Add plain text synonym for `&`. #90

Closed kindaro closed 9 months ago

kindaro commented 4 years ago

So, & is the fundamental construction operation, there is no way around using it. But it clashes with the flipped $ function application defined in base.Data.Function, that is extensively used, for instance, in diagrams, and elsewhere when a more "object oriented" feel is desirable.

Therefore, I propose that we have a synonymous name like insert that can be used when & of DynGraph conflicts with the more widely used & from base.

athas commented 9 months ago

This seems like a good idea. A definition insert = (&) is pretty harmless and sometimes useful.

kindaro commented 7 months ago

Thank you Troels!