Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use backtick syntax for on in haddocks? #222

Open
ggreif opened this issue Jul 10, 2018 · 1 comment
Open

Use backtick syntax for on in haddocks? #222

ggreif opened this issue Jul 10, 2018 · 1 comment

Comments

@ggreif
Copy link
Contributor

ggreif commented Jul 10, 2018

In this line one could advertise a cuter syntax for on:

-- > on click element $ \_ -> ...

namely

-- > click `on` element $ \_ -> ...
@bradrn
Copy link
Contributor

bradrn commented Jul 10, 2018

I've been doing a bit of GTK programming recently; in the gtk3 library they do this but the type of on is flipped to get an even more evocative syntax:

canvas `on` buttonPressEvent  $ canvasMouseHandler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants