@@ -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