@@ -7,16 +7,9 @@ import Control.Exception
7import Data.Aeson
7import Data.Aeson
8import Data.JSString (JSString)
8import Data.JSString (JSString)
9import Foreign.JavaScript.Utils
9import Foreign.JavaScript.Utils
10+import GHCJS.Marshal ()
10import Language.Javascript.JSaddle
11import Language.Javascript.JSaddle
11import System.IO.Unsafe
12import 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 ()
18−import GHCJS.Marshal ()
21jsonDecode :: FromJSON a => JSString -> Maybe a
14jsonDecode :: FromJSON a => JSString -> Maybe a
22jsonDecode t = do
15jsonDecode t = do