Skip to content

Instantly share code, notes, and snippets.

@vilu
Created September 18, 2018 19:16
Show Gist options
  • Save vilu/199800172d827d9a546910f5ffc81e37 to your computer and use it in GitHub Desktop.
Save vilu/199800172d827d9a546910f5ffc81e37 to your computer and use it in GitHub Desktop.
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