@@ -30,7 +30,7 @@ run = do
3030 el "br" (return ())
3131
3232 -- Name the computed API client functions
33− let (getUnit :<|> getInt :<|> sayhi :<|> dbl :<|> doRaw) =
33+ let (getUnit :<|> getInt :<|> sayhi :<|> dbl :<|> multi :<|> doRaw) =
3434 client api (Proxy :: Proxy m) url
3535
3636 elClass "div" "demo-group" $ do
@@ -80,6 +80,13 @@ run = do
8080 el "br" (return ())
8181 display =<< holdDyn "No number yet" (fmap show $ fmapMaybe reqSuccess dblResp)
8282
83+ elClass "div" "demo-group" $ do
84+ text "Multi-part path"
85+ b <- (current . value) <$> checkbox False def
86+ mpGo <- button "Test"
87+ multiResp <- multi b mpGo
88+ dynText =<< holdDyn "No res yet" (fmap show $ fmapMaybe reqSuccess $ multiResp)
89+
8390showXhrResponse :: XhrResponse -> String
8491showXhrResponse (XhrResponse stat stattxt rbmay rtmay) =
8592 unlines ["stat: " ++ show stat