Skip to content

iarthstar/purescript-fetch-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purescript-fetch-api

fetch API js bindings for PureScript

Add purescript-fetch-api to your existing projects

bower i purescript-fetch-api

Code Snippet

main :: Effect Unit
main = launchAff_ do
  let configPost = CreateUserReq { name : "Arth K. Gajjar", job : "Developer" }
  fetch configPost >>= case _ of
    Right (CreateUserRes a) -> log $ "POST : " <> show a
    Left err -> logShow err

Development Guide

NOTE : Please make sure you have yarn :: Installing yarn

  • Build Project
$ yarn build
  • To Test
$ yarn test
  • To watch for changes
$ yarn start

About

Fetch API JS bindings for PureScript

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published