Making `function` syntax a bit more useful.


Making `function` syntax a bit more useful.

It would be really nice if back ticks could turn anything into infix function.

For example

> M.fromList [("a", 1)] `M.unionWith 0 (+)` M.fromList [("a", 3), ("b", 0)] M.fromList [("a", 3), ("b", 0)] 

It seems like a minor change that should not break anything.

I am not sure how should I proceed though… Should I send pull requests to GHC github repo?

Submitted July 12, 2017 at 06:33PM by Ford_O
via reddit http://ift.tt/2uerQzx

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s