on develop help sign in
Added a monomorphic synonym for 'HasJS'
commita5cc84badc0e56f0c89afc899d7ce4d6eb6db30b authorWill Fancher <elvishjerricco@gmail.com> dateWed 2 Aug 2017, 17:51 (9 years ago) parent07d9480
1 file changed+2
reflex-dom-core/src/Foreign/JavaScript/TH.hs+2
reflex-dom-core/src/Foreign/JavaScript/TH.hs+2
@@ -284,6 +284,7 @@ class Monad m => MonadJS x m | m -> x where
284284#ifdef ghcjs_HOST_OS
285285
286286data JSCtx_IO
287+type HasJS' = HasJS JSCtx_IO
287288
288289instance MonadIO m => HasJS JSCtx_IO (WithJSContextSingleton x m) where
289290 type JSX (WithJSContextSingleton x m) = IO
@@ -334,6 +335,7 @@ foreign import javascript unsafe "function(){ return $1(arguments); }" funWithAr
334335#else
335336
336337data JSCtx_JavaScriptCore x
338+type HasJS' = HasJS (JSCtx_JavaScriptCore ())
337339
338340instance IsJSContext (JSCtx_JavaScriptCore x) where
339341 newtype JSRef (JSCtx_JavaScriptCore x) = JSRef_JavaScriptCore { unJSRef_JavaScriptCore :: JSVal }