Created
September 18, 2018 19:16
-
-
Save vilu/199800172d827d9a546910f5ffc81e37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eval :: Query ~> H.HalogenM State Query () Output Aff | |
eval (LoginRequest next) = do | |
s <- H.get | |
responseRaw <- H.liftAff $ AX.post AXResponse.json ("http://localhost:8080/api/users/login") (mkRequest s) | |
responseE <- pure $ parseResponse $ responseRaw.response | |
pure next |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment