diff --git a/bower.json b/bower.json index 5ed565b..a162958 100644 --- a/bower.json +++ b/bower.json @@ -18,12 +18,12 @@ "package.json" ], "dependencies": { - "purescript-prelude": "^4.1.0", - "purescript-web-dom": "^1.0.0", + "purescript-prelude": "^4.1.1", + "purescript-web-dom": "^3.0.0", "purescript-css": "^4.0.0" }, "devDependencies": { - "purescript-web-html": "^1.2.0", - "purescript-web-events": "^1.0.1" + "purescript-web-html": "^2.2.1", + "purescript-web-events": "^2.0.1" } } diff --git a/example/src/Main.purs b/example/src/Main.purs index 91bbddc..a4a9584 100644 --- a/example/src/Main.purs +++ b/example/src/Main.purs @@ -16,7 +16,7 @@ import Web.HTML.Event.EventTypes (load) import Web.HTML.HTMLDocument as HTMLDocument import Web.HTML.Window as Window -onLoad :: Effect Unit -> Effect Unit --forall eff. (Eff (dom :: DOM | eff) Unit) -> Eff (dom :: DOM | eff) Unit +onLoad :: Effect Unit -> Effect Unit onLoad action = do listener <- eventListener $ const action win <- map Window.toEventTarget window diff --git a/package.json b/package.json index 6a89747..5b20a97 100644 --- a/package.json +++ b/package.json @@ -6,14 +6,12 @@ "test": "pulp build -I example/src -- --censor-lib --strict", "build-example": "pulp browserify -I example/src --to example/example.js" }, - "devDependencies": { - "eslint": "^3.19.0", - "pulp": "^12.2.0", - "purescript": "^0.12.0", - "purescript-psa": "^0.6.0", - "rimraf": "^2.6.1" - }, "dependencies": { - "clipboard": "1.6.1" + "clipboard": "^2.0.4", + "eslint": "^5.16.0", + "pulp": "^13.0.0", + "purescript": "^0.13.0", + "purescript-psa": "^0.7.3", + "rimraf": "^2.6.3" } }