We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2948f0f commit 207d6b1Copy full SHA for 207d6b1
booster/library/Booster/LLVM/TH.hs
@@ -89,9 +89,9 @@ foreignImport name' ty' = do
89
libHandle <- TH.newName "libHandle"
90
91
pure
92
- [ -- foreign import ccall "dynamic" <camel_name>Unwrap :: FunPtr <ty> -> <ty>
+ [ -- foreign import ccall unsafe "dynamic" <camel_name>Unwrap :: FunPtr <ty> -> <ty>
93
TH.ForeignD $
94
- TH.ImportF TH.CCall TH.Safe "dynamic" nameUnwrap $
+ TH.ImportF TH.CCall TH.Unsafe "dynamic" nameUnwrap $
95
TH.AppT (TH.AppT TH.ArrowT $ TH.AppT (TH.ConT ''FunPtr) ty) ty
96
, -- <camel_name>FunPtr :: ReaderT DL IO (FunPtr <ty>)
97
TH.SigD
0 commit comments