@@ -7,16 +7,9 @@ import Control.Exception
77import Data.Aeson
88import Data.JSString (JSString)
99import Foreign.JavaScript.Utils
10+import GHCJS.Marshal ()
1011import Language.Javascript.JSaddle
1112import System.IO.Unsafe
12−-- When on ghcjs and using packages with jsstring patches it removes the FromJSVal
13−-- instance for Value from ghcjs-base. This makes it so that if the patches
14−-- are used then the instance comes from ghcjs-json
15−#ifdef USE_TEXT_JSSTRING
16−import JavaScript.JSON.Types.FromJSVal ()
17−#else
18−import GHCJS.Marshal ()
19−#endif
2013
2114jsonDecode :: FromJSON a => JSString -> Maybe a
2215jsonDecode t = do