HeinrichApfelmus / threepenny-gui

GUI framework that uses the web browser as a display.

Home Page:https://heinrichapfelmus.github.io/threepenny-gui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use backtick syntax for `on` in haddocks?

ggreif opened this issue · comments

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

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

namely

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

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