Skip to content

Commit 0e19e58

Browse files
authored
Merge pull request #1 from nwolverson/patch-1
README - update the module names
2 parents 3a58291 + b93aac5 commit 0e19e58

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# purescript-aff-promise
1+
# purescript-js-promise-aff
22

33
Simple library for interop between Aff and JavaScript promises.
44

@@ -23,7 +23,7 @@ getLinesAff = do
2323
and 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
2828
getLines :: Effect (Promise (Array String))
2929
getLines = Promise.fromAff getLinesAff
@@ -59,12 +59,12 @@ the function returns the network request has already been initated.
5959
The 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
6464
fetch :: String -> Aff String
6565
fetch = 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).

0 commit comments

Comments
 (0)