diff --git a/booster/library/Booster/LLVM/TH.hs b/booster/library/Booster/LLVM/TH.hs index 3aaa9c5302..07c2f8880f 100644 --- a/booster/library/Booster/LLVM/TH.hs +++ b/booster/library/Booster/LLVM/TH.hs @@ -89,9 +89,9 @@ foreignImport name' ty' = do libHandle <- TH.newName "libHandle" pure - [ -- foreign import ccall unsafe "dynamic" Unwrap :: FunPtr -> + [ -- foreign import ccall "dynamic" Unwrap :: FunPtr -> TH.ForeignD $ - TH.ImportF TH.CCall TH.Unsafe "dynamic" nameUnwrap $ + TH.ImportF TH.CCall TH.Safe "dynamic" nameUnwrap $ TH.AppT (TH.AppT TH.ArrowT $ TH.AppT (TH.ConT ''FunPtr) ty) ty , -- FunPtr :: ReaderT DL IO (FunPtr ) TH.SigD