main = do
  withElem "analyzeButton" $ \el -> setCallback el OnClick analyzeFormula
  withElem "formulaInput" $ \el -> setCallback el OnKeyPress analyzeOnEnter
main = do
  withElem "analyzeButton" $ \el -> setCallback el OnClick analyzeFormula
  withElem "formulaInput" $ \el -> setCallback el OnKeyPress analyzeOnEnter
main = do
  withElem "analyzeButton" $ \el -> setCallback el OnClick analyzeFormula
  withElem "formulaInput" $ \el -> setCallback el OnKeyPress analyzeOnEnter