I'm noticing that many examples using onClick (among others) don't compile for me as-in. I'm forced to either add a void or unit <$. For example, the following code doesn't compile:
hello :: forall a. Widget HTML a
hello = do
button [onClick] [text "Say Hello"]
button' [text "Hello Sailor!"]
It compiles with these modifications:
hello :: forall a. Widget HTML a
hello = do
button [void onClick] [text "Say Hello"]
button' [text "Hello Sailor!"]
Is this expected? If so, should I submit a PR for updating the examples?
I'm noticing that many examples using
onClick
(among others) don't compile for me as-in. I'm forced to either add avoid
orunit <$
. For example, the following code doesn't compile:It compiles with these modifications:
Is this expected? If so, should I submit a PR for updating the examples?