From 16e675a9f94103ada1bd4b2bff71d64044fce365 Mon Sep 17 00:00:00 2001 From: Hamish Mackenzie Date: Tue, 6 Feb 2024 01:08:21 +1300 Subject: [PATCH] Use callback module from `base` for js backend --- jsaddle/src/Language/Javascript/JSaddle/Object.hs | 4 ++++ 1 file changed, 4 insertions(+) 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)