hs-bindgen-1.0.0.0: test-artefacts/fixtures/attributes/asm/Example/Unsafe.hs
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_HADDOCK prune #-}
module Example.Unsafe
( Example.Unsafe.asm_labeled_function
)
where
import qualified HsBindgen.Runtime.Support as BG
import qualified HsBindgen.Runtime.Support.CAPI
import Prelude (IO, fmap)
$(HsBindgen.Runtime.Support.CAPI.addCSource (HsBindgen.Runtime.Support.CAPI.unlines
[ "#include <attributes/asm.h>"
, "signed int hs_bindgen_3ad6c287a2386382 ("
, " signed int arg1,"
, " signed int arg2"
, ")"
, "{"
, " return (asm_labeled_function)(arg1, arg2);"
, "}"
]))
-- __unique:__ @test_attributesasm_Example_Unsafe_asm_labeled_function@
foreign import ccall unsafe "hs_bindgen_3ad6c287a2386382" hs_bindgen_3ad6c287a2386382_base ::
BG.CInt
-> BG.CInt
-> IO BG.CInt
-- __unique:__ @test_attributesasm_Example_Unsafe_asm_labeled_function@
hs_bindgen_3ad6c287a2386382 ::
BG.CInt
-> BG.CInt
-> IO BG.CInt
hs_bindgen_3ad6c287a2386382 =
\x0 ->
\x1 ->
fmap BG.fromFFIType (hs_bindgen_3ad6c287a2386382_base (BG.toFFIType x0) (BG.toFFIType x1))
{-| __C declaration:__ @asm_labeled_function@
__defined at:__ @attributes\/asm.h 4:5@
__exported by:__ @attributes\/asm.h@
-}
asm_labeled_function ::
BG.CInt
-- ^ __C declaration:__ @x@
-> BG.CInt
-- ^ __C declaration:__ @y@
-> IO BG.CInt
asm_labeled_function = hs_bindgen_3ad6c287a2386382