Skip to content
This repository was archived by the owner on Jan 17, 2020. It is now read-only.

Commit 8fe6ba4

Browse files
committed
Upgrade purescript-aff* dependencies
- upgraded stale docs - fixed example build
1 parent a853fd6 commit 8fe6ba4

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
],
1818
"license": "Apache-2.0",
1919
"dependencies": {
20-
"purescript-aff": "^0.11.3",
21-
"purescript-aff-reattempt": "^0.1.0",
20+
"purescript-aff": "^0.13.0",
21+
"purescript-aff-reattempt": "^0.2.0",
2222
"purescript-base": "^0.2.0",
2323
"purescript-dom": "^0.2.4"
2424
}

docs/Selenium/Monad.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ putting `Driver` to `ReaderT`
77
#### `Selenium`
88

99
``` purescript
10-
type Selenium e o a = ReaderT { driver :: Driver, defaultTimeout :: Int | o } (Aff (console :: CONSOLE, selenium :: SELENIUM, dom :: DOM, ref :: REF | e)) a
10+
type Selenium e o = ReaderT { driver :: Driver, defaultTimeout :: Int | o } (Aff (console :: CONSOLE, selenium :: SELENIUM, dom :: DOM, ref :: REF | e))
1111
```
1212

1313
`Driver` is field of `ReaderT` context

example/src/Example/Main.purs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ module Example.Main where
33
import Prelude
44
import Control.Monad.Eff (Eff())
55
import Control.Monad.Eff.Console (CONSOLE())
6+
import Control.Monad.Eff.Exception (EXCEPTION())
67
import Control.Monad.Aff (Aff(), launchAff, later')
78
import Control.Monad.Aff.Console (log)
89
import Data.Maybe (maybe)
910
import Selenium
10-
import Selenium.Types
11+
import Selenium.Types
1112
import Selenium.Browser
1213
import Selenium.Builder
1314

14-
main :: Eff (selenium :: SELENIUM, console :: CONSOLE) Unit
15+
main :: Eff (selenium :: SELENIUM, console :: CONSOLE, err :: EXCEPTION) Unit
1516
main = do
1617
launchAff do
1718
driver <- build $ browser FireFox
@@ -40,5 +41,5 @@ main = do
4041
if title == "webdriver - Google Search"
4142
then pure true
4243
else later' 50 $ titleAff driver
43-
44-
44+
45+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"dependencies": {
1818
"gulp": "^3.9.0",
1919
"gulp-purescript": "^0.5.0",
20-
"purescript": "^0.7.1",
20+
"purescript": "^0.7.4",
2121
"selenium-webdriver": "^2.46.1"
2222
}
2323
}

0 commit comments

Comments
 (0)