We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 968dff5 commit b3cb786Copy full SHA for b3cb786
GHCJS/Types.hs
@@ -16,6 +16,7 @@ module GHCJS.Types ( JSVal
16
, Ref#
17
, toPtr
18
, fromPtr
19
+ , JSRef
20
) where
21
22
import Data.JSString.Internal.Type (JSString)
@@ -58,3 +59,9 @@ foreign import javascript unsafe "$r = $1_1;"
58
59
60
foreign import javascript unsafe "$r1 = $1; $r2 = 0;"
61
js_mkPtr :: JSVal -> Ptr a
62
+
63
+-- | This is a deprecated copmatibility wrapper for the old JSRef type.
64
+--
65
+-- See https://github.com/ghcjs/ghcjs/issues/421
66
+type JSRef a = JSVal
67
+{-# DEPRECATED JSRef "Use JSVal instead, or a more specific newtype wrapper of JSVal " #-}
0 commit comments