@@ -29,7 +29,7 @@ newtype WKWebView = WKWebView (Ptr WKWebView)
29foreign export ccall jsaddleStart :: StablePtr (IO ()) -> IO ()
29foreign export ccall jsaddleStart :: StablePtr (IO ()) -> IO ()
30foreign export ccall jsaddleResult :: StablePtr (Results -> IO ()) -> CString -> IO ()
30foreign export ccall jsaddleResult :: StablePtr (Results -> IO ()) -> CString -> IO ()
31foreign export ccall withWebView :: WKWebView -> StablePtr (WKWebView -> IO ()) -> IO ()
31foreign export ccall withWebView :: WKWebView -> StablePtr (WKWebView -> IO ()) -> IO ()
32−foreign export ccall didRegisterForRemoteNotificationsWithDeviceTokenCallback :: StablePtr (CString -> IO ()) -> CString -> IO ()
32+foreign export ccall didRegisterForRemoteNotificationsWithDeviceTokenCallback :: CString -> StablePtr (CString -> IO ()) -> IO ()
33foreign import ccall addJSaddleHandler :: WKWebView -> StablePtr (IO ()) -> StablePtr (Results -> IO ()) -> IO ()
33foreign import ccall addJSaddleHandler :: WKWebView -> StablePtr (IO ()) -> StablePtr (Results -> IO ()) -> IO ()
34foreign import ccall loadHTMLString :: WKWebView -> CString -> IO ()
34foreign import ccall loadHTMLString :: WKWebView -> CString -> IO ()
35foreign import ccall loadBundleFile :: WKWebView -> CString -> CString -> IO ()
35foreign import ccall loadBundleFile :: WKWebView -> CString -> CString -> IO ()
@@ -87,8 +87,8 @@ withWebView webView ptrF = do
89-- | A base64 encoded device token
89-- | A base64 encoded device token
90−didRegisterForRemoteNotificationsWithDeviceTokenCallback :: StablePtr (CString -> IO ()) -> CString -> IO ()
90+didRegisterForRemoteNotificationsWithDeviceTokenCallback :: CString -> StablePtr (CString -> IO ()) -> IO ()
91−didRegisterForRemoteNotificationsWithDeviceTokenCallback f token = do
91+didRegisterForRemoteNotificationsWithDeviceTokenCallback token f = do
92 f' <- deRefStablePtr f
92 f' <- deRefStablePtr f