-
Remove the type parameters from
JSRef
. -
Turn declarations like this:
type Foo = JSRef Foo_ data Foo_
into
newtype Foo = Foo JSRef
-
ToJSString
/FromJSString
were removed. ghcjs-dom has some similar utilities, but a different API. Seems like a good idea to keep them around. See ghcjs/ghcjs-base#30 -
GHCJS.Foreign.newObj
becameJavaScript.Object.create
(and getProp, setProp, etc got moved there too). -
release
becamereleaseCallback
-
Callback stuff dropped the retention parameter, and changed the
Bool
toOnBlocked
.True
becomesContinueAsync
, andFalse
becomesThrowWouldBlock
-
You should just use
Data.Coerce.coerce
instead ofcastRef
-
-
Save mgsloan/b33f071f99f73810acff to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! This is quite helpful. What about arrays?