hs-bindgen-1.0.0.0: test-artefacts/fixtures/macros/macro_ext_binding_dep.2.raw/Example/Unsafe.hs
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_HADDOCK prune #-}
module Example.Unsafe
( Example.Unsafe.use_b
)
where
import qualified HsBindgen.Runtime.Support as BG
import qualified HsBindgen.Runtime.Support.CAPI
import qualified M
import Prelude (IO)
$(HsBindgen.Runtime.Support.CAPI.addCSource (HsBindgen.Runtime.Support.CAPI.unlines
[ "#include <macros/macro_ext_binding_dep.h>"
, "void hs_bindgen_f1dab51ba21acc43 ("
, " A arg1"
, ")"
, "{"
, " (use_b)(arg1);"
, "}"
]))
-- __unique:__ @test_macrosmacro_ext_binding_dep_2_Example_Unsafe_use_b@
foreign import ccall unsafe "hs_bindgen_f1dab51ba21acc43" hs_bindgen_f1dab51ba21acc43_base ::
BG.CInt
-> IO ()
-- __unique:__ @test_macrosmacro_ext_binding_dep_2_Example_Unsafe_use_b@
hs_bindgen_f1dab51ba21acc43 ::
M.A
-> IO ()
hs_bindgen_f1dab51ba21acc43 =
\x0 ->
hs_bindgen_f1dab51ba21acc43_base (BG.toFFIType x0)
{-| __C declaration:__ @use_b@
__defined at:__ @macros\/macro_ext_binding_dep.h 8:6@
__exported by:__ @macros\/macro_ext_binding_dep.h@
-}
use_b ::
M.A
-- ^ __C declaration:__ @x@
-> IO ()
use_b = hs_bindgen_f1dab51ba21acc43