hs-bindgen-1.0.0.0: test-artefacts/fixtures/macros/redeclaration/identical_semantics/Example/Unsafe.hs
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_HADDOCK prune #-}
module Example.Unsafe
( Example.Unsafe.foo
, Example.Unsafe.bar
)
where
import qualified HsBindgen.Runtime.Support as BG
import qualified HsBindgen.Runtime.Support.CAPI
import Example
import Prelude (IO)
$(HsBindgen.Runtime.Support.CAPI.addCSource (HsBindgen.Runtime.Support.CAPI.unlines
[ "#include <macros/redeclaration/identical_semantics.h>"
, "void hs_bindgen_1f6a4a088740d7bc ("
, " T arg1"
, ")"
, "{"
, " (foo)(arg1);"
, "}"
, "void hs_bindgen_69080a62615bc0d8 ("
, " T arg1"
, ")"
, "{"
, " (bar)(arg1);"
, "}"
]))
-- __unique:__ @test_macrosredeclarationidentical_Example_Unsafe_foo@
foreign import ccall unsafe "hs_bindgen_1f6a4a088740d7bc" hs_bindgen_1f6a4a088740d7bc_base ::
BG.CInt
-> IO ()
-- __unique:__ @test_macrosredeclarationidentical_Example_Unsafe_foo@
hs_bindgen_1f6a4a088740d7bc ::
T
-> IO ()
hs_bindgen_1f6a4a088740d7bc =
\x0 ->
hs_bindgen_1f6a4a088740d7bc_base (BG.toFFIType x0)
{-| __C declaration:__ @foo@
__defined at:__ @macros\/redeclaration\/identical_semantics.h 3:6@
__exported by:__ @macros\/redeclaration\/identical_semantics.h@
-}
foo ::
T
-- ^ __C declaration:__ @x@
-> IO ()
foo = hs_bindgen_1f6a4a088740d7bc
-- __unique:__ @test_macrosredeclarationidentical_Example_Unsafe_bar@
foreign import ccall unsafe "hs_bindgen_69080a62615bc0d8" hs_bindgen_69080a62615bc0d8_base ::
BG.CInt
-> IO ()
-- __unique:__ @test_macrosredeclarationidentical_Example_Unsafe_bar@
hs_bindgen_69080a62615bc0d8 ::
T
-> IO ()
hs_bindgen_69080a62615bc0d8 =
\x0 ->
hs_bindgen_69080a62615bc0d8_base (BG.toFFIType x0)
{-| __C declaration:__ @bar@
__defined at:__ @macros\/redeclaration\/identical_semantics.h 5:6@
__exported by:__ @macros\/redeclaration\/identical_semantics.h@
-}
bar ::
T
-- ^ __C declaration:__ @x@
-> IO ()
bar = hs_bindgen_69080a62615bc0d8