summaryrefslogtreecommitdiff
path: root/Com/InfluencedByBooks/Move.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Com/InfluencedByBooks/Move.hs')
-rw-r--r--Com/InfluencedByBooks/Move.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Com/InfluencedByBooks/Move.hs b/Com/InfluencedByBooks/Move.hs
index 3baafc6..d6cb12e 100644
--- a/Com/InfluencedByBooks/Move.hs
+++ b/Com/InfluencedByBooks/Move.hs
@@ -20,12 +20,12 @@ move :: Action -> Model -> Effect Action Model
move Nop m = noEff m
move (HandleRoute u) m = m { uri = u } <# pure Nop
move (ChangeRoute u) m = m <# do pushURI u >> pure Nop
-move FetchPeople m = m <# (SetPeople /@ fetchPeople)
+move FetchPeople m = m <# (SetPeople </ fetchPeople)
move (SetPeople ps) m = noEff m { people = ps }
fetchPeople :: IO (WebData [Core.Person])
fetchPeople = do
- mjson <- contents /@ xhrByteString req
+ mjson <- contents </ xhrByteString req
case mjson of
Nothing -> pure $ Failure "could not read from server"
Just a -> pure