on develop help sign in
Cleanup redundant ghcjs checking.
commit268f7e6c77eadd749dc4aac0751bf58d6baead9a authorLuigy Leon <luigy@outlook.com> dateWed 7 Jun 2017, 10:24 (9 years ago) parenta028487
1 file changed+2−3
reflex-dom-core/src-ghcjs/Reflex/Dom/WebSocket/Internal.hs+2−3
reflex-dom-core/src-ghcjs/Reflex/Dom/WebSocket/Internal.hs+2−3
@@ -12,10 +12,9 @@ import System.IO.Unsafe
1212-- When on ghcjs and using packages with jsstring patches it removes the FromJSVal
1313-- instance for Value from ghcjs-base. This makes it so that if the patches
1414-- are used then the instance comes from ghcjs-json
15−#if defined(ghcjs_HOST_OS) && defined(USE_TEXT_JSSTRING)
15+#ifdef USE_TEXT_JSSTRING
1616import JavaScript.JSON.Types.FromJSVal ()
17−#endif
18−#if defined(ghcjs_HOST_OS) && !defined(USE_TEXT_JSSTRING)
17+#else
1918import GHCJS.Marshal ()
2019#endif
2120