Closed NCrashed closed 9 years ago
I'm looking at the bug. This slightly simpler program also reproduces the error:
The problem is with fmap
data Ejm a= Ejm a deriving Show
main = runBody $ do
res <- fmap Ejm wa
wprint res
where
wa :: Widget Int
wa = do
(wraw $ input ! atr "type" "button" ! atr "value" "Left") `fire` OnClick
return 10
I forgot to tell that an easy workaround is to include the expression within the event: for example:
(Ejm <$> input ! atr "type" "button" ! atr "value" "Left" ) `fire` OnClick
Solved in the last push, and in the docker image. Thanks
Thanks!
This crashes program:
Console output:
Link to example (perhaps, isn't available as heroku resets instance): http://tryplayg.herokuapp.com/try/map_bug.hs/edit