diff --git a/jsaddle/src/Language/Javascript/JSaddle/Object.hs b/jsaddle/src/Language/Javascript/JSaddle/Object.hs index 74c4572..9472d02 100644 --- a/jsaddle/src/Language/Javascript/JSaddle/Object.hs +++ b/jsaddle/src/Language/Javascript/JSaddle/Object.hs @@ -102,7 +102,11 @@ import Prelude hiding ((!!)) import Data.Coerce (coerce) #ifdef ghcjs_HOST_OS import GHCJS.Types (nullRef) +#if __GLASGOW_HASKELL__ >= 900 +import GHC.JS.Foreign.Callback +#else import GHCJS.Foreign.Callback +#endif (releaseCallback, syncCallback2, asyncCallback2, OnBlocked(..), Callback) import GHCJS.Marshal (ToJSVal(..)) import JavaScript.Array (MutableJSArray)