File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- # purescript-aff -promise
1+ # purescript-js -promise-aff
22
33Simple library for interop between Aff and JavaScript promises.
44
@@ -23,7 +23,7 @@ getLinesAff = do
2323and this can be exposed as a function returning a promise:
2424
2525``` purescript
26- import Control. Promise as Promise
26+ import Promise.Aff as Promise
2727
2828getLines :: Effect (Promise (Array String))
2929getLines = Promise.fromAff getLinesAff
@@ -59,12 +59,12 @@ the function returns the network request has already been initated.
5959The response can then be converted to an ` Aff ` and consumed easily:
6060
6161``` purescript
62- import Control. Promise as Promise
62+ import Promise.Aff as Promise
6363
6464fetch :: String -> Aff String
6565fetch = fetchImpl >>> Promise.toAffE
6666```
6767
6868# Documentation
6969
70- API documentation is available [ on Pursuit] ( https://pursuit.purescript.org/packages/purescript-aff -promise ) .
70+ API documentation is available [ on Pursuit] ( https://pursuit.purescript.org/packages/purescript-js -promise-aff ) .
You can’t perform that action at this time.
0 commit comments