diff options
author | Ben Sima <ben@bsima.me> | 2020-12-24 14:24:16 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-12-24 14:24:16 -0500 |
commit | 6eaaf3d8ce6025932990de6fa697d14c9651be76 (patch) | |
tree | 65ca4a0dd0393db98d9a6067bbbef789469e8122 /Biz/Ibb/Move.hs | |
parent | 6a4a8aa37044d578c95dea145b9605908b8dc28d (diff) |
linting fixes and cleanup
Diffstat (limited to 'Biz/Ibb/Move.hs')
-rw-r--r-- | Biz/Ibb/Move.hs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Biz/Ibb/Move.hs b/Biz/Ibb/Move.hs index 0dec4e5..2135f85 100644 --- a/Biz/Ibb/Move.hs +++ b/Biz/Ibb/Move.hs @@ -27,8 +27,9 @@ import Network.RemoteData 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 (ChangeRoute u) m = + m <# do + pushURI u >> pure Nop move FetchPeople m = m <# (SetPeople </ fetchPeople) move (SetPeople ps) m = noEff m {people = ps} @@ -36,9 +37,9 @@ fetchPeople :: IO (WebData [Core.Person]) fetchPeople = do mjson <- contents </ xhrByteString req case mjson of - Nothing -> pure $ Failure "could not read from server" + Nothing -> pure <| Failure "could not read from server" Just a -> - pure $ fromEither $ either (Left . ms) pure $ eitherDecodeStrict a + pure <| fromEither <| either (Left <. ms) pure <| eitherDecodeStrict a where req = Request |