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

Commit 309ad42

Browse files
committed
Update for 0.10.
1 parent 52ba187 commit 309ad42

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

bower.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
"package.json"
2121
],
2222
"dependencies": {
23-
"purescript-datetime": "^1.0.0",
24-
"purescript-enums": "^1.0.0",
25-
"purescript-exceptions": "^1.0.0",
26-
"purescript-foldable-traversable": "^1.0.0",
27-
"purescript-foreign": "^1.0.0",
28-
"purescript-js-date": "^2.0.0",
29-
"purescript-media-types": "^1.0.0",
30-
"purescript-nullable": "^1.0.0",
31-
"purescript-prelude": "^1.0.0",
32-
"purescript-unsafe-coerce": "^1.0.0"
23+
"purescript-datetime": "^2.0.0",
24+
"purescript-enums": "^2.0.0",
25+
"purescript-exceptions": "^2.0.0",
26+
"purescript-foldable-traversable": "^2.0.0",
27+
"purescript-foreign": "^3.0.0",
28+
"purescript-js-date": "^3.0.0",
29+
"purescript-media-types": "^2.0.0",
30+
"purescript-nullable": "^2.0.0",
31+
"purescript-prelude": "^2.1.0",
32+
"purescript-unsafe-coerce": "^2.0.0"
3333
}
3434
}

src/DOM/HTML/Types.purs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ module DOM.HTML.Types
208208
) where
209209

210210
import Prelude
211+
import Control.Monad.Except.Trans (except)
211212
import Data.Either (Either(..))
212213
import Data.Foreign (Foreign, F, ForeignError(..), unsafeReadTagged)
213214
import Data.Foreign.Class (class IsForeign)
@@ -274,7 +275,7 @@ foreign import _readHTMLElement
274275
-> F HTMLElement
275276

276277
readHTMLElement :: Foreign -> F HTMLElement
277-
readHTMLElement = _readHTMLElement (Left <<< TypeMismatch "HTMLElement") Right
278+
readHTMLElement = _readHTMLElement (except <<< Left <<< pure <<< TypeMismatch "HTMLElement") (except <<< Right)
278279

279280
instance isForeignHTMLElement :: IsForeign HTMLElement where
280281
read = readHTMLElement

0 commit comments

Comments
 (0)