HeinrichApfelmus / threepenny-gui

GUI framework that uses the web browser as a display.
https://heinrichapfelmus.github.io/threepenny-gui/
Other
439 stars 77 forks source link

fixed BarTab.hs example: UI.text instead of text #118

Closed sindikat closed 7 years ago

sindikat commented 8 years ago

On line 31

            element elResult # set UI.text (showNumber . sum $ map readNumber xs)

Works correctly, while

            element elResult # set text (showNumber . sum $ map readNumber xs)

makes that <body> tag is empty. I think instead of referring to Attributes.text_ it refers to Core.text, which is a different function. Is that the source of the problem?

HeinrichApfelmus commented 7 years ago

This is really weird, because text should be example the same as UI.text in this context. But it is good style anyway, so why not.