@@ -13,6 +13,7 @@
1313{-# LANGUAGE RecursiveDo #-}
1414{-# LANGUAGE ScopedTypeVariables #-}
1515{-# LANGUAGE TemplateHaskell #-}
16+{-# LANGUAGE TupleSections #-}
1617{-# LANGUAGE TypeApplications #-}
1718{-# LANGUAGE TypeFamilies #-}
1819
@@ -133,7 +134,7 @@ main = withSeleniumServer $ \selenium -> do
133134
134135tests :: WD.WDConfig -> [Capabilities] -> Selenium -> Spec
135136tests wdConfig caps _selenium = do
136− let session' = sessionWith wdConfig "" . using (map (flip (,) "") caps)
137+ let session' = sessionWith wdConfig "" . using (map (,"") caps)
137138 runWD = runWDOptions (WdOptions False)
138139 describe "text" $ session' $ do
139140 it "works" $ runWD $ do
@@ -218,7 +219,7 @@ tests wdConfig caps _selenium = do
218219 let conf :: ElementConfig EventResult (SpiderTimeline Global) GhcjsDomSpace
219220 conf = (def :: ElementConfig EventResult (SpiderTimeline Global) GhcjsDomSpace)
220221 & initialAttributes .~ "id" =: "second"
221− & elementConfig_eventSpec .~ (addEventSpecFlags (Proxy :: Proxy GhcjsDomSpace) Click (\_ -> stopPropagation) def)
222+ & elementConfig_eventSpec .~ addEventSpecFlags (Proxy :: Proxy GhcjsDomSpace) Click (\_ -> stopPropagation) def
222223 void $ element "span" conf $ text "hello world"
223224 performEvent_ $ liftIO (writeRef secondClickedRef True) <$ domEvent Click secondDivEl
224225 firstClicked <- readRef firstClickedRef
@@ -234,7 +235,7 @@ tests wdConfig caps _selenium = do
234235 clicked <- testWidget (pure ()) click $ prerender_ (pure ()) $ do
235236 let conf :: ElementConfig EventResult (SpiderTimeline Global) GhcjsDomSpace
236237 conf = (def :: ElementConfig EventResult (SpiderTimeline Global) GhcjsDomSpace)
237− & elementConfig_eventSpec .~ (addEventSpecFlags (Proxy :: Proxy GhcjsDomSpace) Click (\_ -> preventDefault) def)
238+ & elementConfig_eventSpec .~ addEventSpecFlags (Proxy :: Proxy GhcjsDomSpace) Click (\_ -> preventDefault) def
238239 & initialAttributes .~ "type" =: "checkbox"
239240 void $ element "input" conf $ text "hello world"
240241 assertEqual "Click not prevented" (False, False) clicked
@@ -340,8 +341,8 @@ tests wdConfig caps _selenium = do
340341 testWidget (pure ()) checkValue $ do
341342 update <- triggerEventWithChan setValueChan
342343 e <- inputElement $ def & inputElementConfig_setValue .~ update
343− performEvent_ $ liftIO . (writeRef valueByUIRef) <$> _inputElement_input e
344− performEvent_ $ liftIO . (writeRef valueRef) <$> updated (value e)
344+ performEvent_ $ liftIO . writeRef valueByUIRef <$> _inputElement_input e
345+ performEvent_ $ liftIO . writeRef valueRef <$> updated (value e)
345346 it "sets checked appropriately" $ runWD $ do
346347 checkedByUIRef <- newRef False
347348 checkedRef <- newRef False