aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorJoris2018-10-30 20:33:17 +0100
committerJoris2018-10-30 20:33:17 +0100
commit8a28f608d8e08fba4bbe54b46804d261686c3c03 (patch)
tree0accedf149dc42461ec2662f190243f9a9d3888b /client
parent50fb8fa48d1c4881da20b4ecf6d68a772301e713 (diff)
Upgrade reflex-platform
Diffstat (limited to 'client')
-rw-r--r--client/src/Util/Ajax.hs2
-rw-r--r--client/src/Util/WaitFor.hs2
-rw-r--r--client/src/View/Payment/Header.hs1
3 files changed, 3 insertions, 2 deletions
diff --git a/client/src/Util/Ajax.hs b/client/src/Util/Ajax.hs
index 0d76638..7b65c52 100644
--- a/client/src/Util/Ajax.hs
+++ b/client/src/Util/Ajax.hs
@@ -31,7 +31,7 @@ delete
-> Event t ()
-> m (Event t (Either Text Text))
delete url fire = do
- response <- R.performRequestAsync (R.attachPromptlyDynWith (\u _ -> request "DELETE" u ()) url fire)
+ response <- R.performRequestAsync (R.attachWith (\u _ -> request "DELETE" u ()) (R.current url) fire)
return $ fmap getResult response
getJsonResult :: forall a. (FromJSON a) => XhrResponse -> Either Text a
diff --git a/client/src/Util/WaitFor.hs b/client/src/Util/WaitFor.hs
index 0175c95..7d5e7c5 100644
--- a/client/src/Util/WaitFor.hs
+++ b/client/src/Util/WaitFor.hs
@@ -13,6 +13,6 @@ waitFor
-> Dynamic t a
-> m (Event t b, Event t Bool)
waitFor op start input = do
- result <- op (R.tagPromptlyDyn input start) >>= R.debounce (0.5 :: NominalDiffTime)
+ result <- op (R.tag (R.current input) start) >>= R.debounce (0.5 :: NominalDiffTime)
let waiting = R.leftmost [ const True <$> start , const False <$> result ]
return (result, waiting)
diff --git a/client/src/View/Payment/Header.hs b/client/src/View/Payment/Header.hs
index 653df5e..6fbaecf 100644
--- a/client/src/View/Payment/Header.hs
+++ b/client/src/View/Payment/Header.hs
@@ -11,6 +11,7 @@ import qualified Data.Map as M
import Data.Maybe (fromMaybe)
import Data.Text (Text)
import qualified Data.Text as T
+import Data.Time (NominalDiffTime)
import qualified Data.Time as Time
import Prelude hiding (init)
import Reflex.Dom (Dynamic, Event, MonadWidget, Reflex)