packages feed

hs-bindgen-1.0.0.0: test-artefacts/fixtures/macros/macro_ext_binding_dep.2.raw/th.txt

-- addDependentFile test-artefacts/headers/golden/macros/macro_ext_binding_dep.h
-- #include <macros/macro_ext_binding_dep.h>
-- void hs_bindgen_92afe64d8d8fc053 (
--   A arg1
-- )
-- {
--   (use_b)(arg1);
-- }
-- void hs_bindgen_f1dab51ba21acc43 (
--   A arg1
-- )
-- {
--   (use_b)(arg1);
-- }
-- /* test_macrosmacro_ext_binding_dep_2_Example_get_use_b */
-- __attribute__ ((const))
-- void (*hs_bindgen_2ea258d8b3c67286 (void)) (
--   A arg1
-- )
-- {
--   return &use_b;
-- }
{-| __C declaration:__ @macro B@

    __defined at:__ @macros\/macro_ext_binding_dep.h 6:9@

    __exported by:__ @macros\/macro_ext_binding_dep.h@
-}
b :: Raw String
{-| __C declaration:__ @macro B@

    __defined at:__ @macros\/macro_ext_binding_dep.h 6:9@

    __exported by:__ @macros\/macro_ext_binding_dep.h@
-}
b = objectLike "B" ["A"]
-- __unique:__ @test_macrosmacro_ext_binding_dep_2_Example_Safe_use_b@
foreign import ccall safe "hs_bindgen_92afe64d8d8fc053" hs_bindgen_92afe64d8d8fc053_base ::
    CInt
 -> IO ()
-- __unique:__ @test_macrosmacro_ext_binding_dep_2_Example_Safe_use_b@
hs_bindgen_92afe64d8d8fc053 :: M.A -> IO ()
-- __unique:__ @test_macrosmacro_ext_binding_dep_2_Example_Safe_use_b@
hs_bindgen_92afe64d8d8fc053 = \x_0 -> hs_bindgen_92afe64d8d8fc053_base (toFFIType x_0)
{-| __C declaration:__ @use_b@

    __defined at:__ @macros\/macro_ext_binding_dep.h 8:6@

    __exported by:__ @macros\/macro_ext_binding_dep.h@
-}
use_b_safe :: M.A -> IO ()
{-| __C declaration:__ @use_b@

    __defined at:__ @macros\/macro_ext_binding_dep.h 8:6@

    __exported by:__ @macros\/macro_ext_binding_dep.h@
-}
use_b_safe = hs_bindgen_92afe64d8d8fc053
-- __unique:__ @test_macrosmacro_ext_binding_dep_2_Example_Unsafe_use_b@
foreign import ccall unsafe "hs_bindgen_f1dab51ba21acc43" hs_bindgen_f1dab51ba21acc43_base ::
    CInt
 -> IO ()
-- __unique:__ @test_macrosmacro_ext_binding_dep_2_Example_Unsafe_use_b@
hs_bindgen_f1dab51ba21acc43 :: M.A -> IO ()
-- __unique:__ @test_macrosmacro_ext_binding_dep_2_Example_Unsafe_use_b@
hs_bindgen_f1dab51ba21acc43 = \x_0 -> hs_bindgen_f1dab51ba21acc43_base (toFFIType x_0)
{-| __C declaration:__ @use_b@

    __defined at:__ @macros\/macro_ext_binding_dep.h 8:6@

    __exported by:__ @macros\/macro_ext_binding_dep.h@
-}
use_b_unsafe :: M.A -> IO ()
{-| __C declaration:__ @use_b@

    __defined at:__ @macros\/macro_ext_binding_dep.h 8:6@

    __exported by:__ @macros\/macro_ext_binding_dep.h@
-}
use_b_unsafe = hs_bindgen_f1dab51ba21acc43
-- __unique:__ @test_macrosmacro_ext_binding_dep_2_Example_get_use_b@
foreign import ccall unsafe "hs_bindgen_2ea258d8b3c67286" hs_bindgen_2ea258d8b3c67286_base ::
    IO (FunPtr Void)
-- __unique:__ @test_macrosmacro_ext_binding_dep_2_Example_get_use_b@
hs_bindgen_2ea258d8b3c67286 :: IO (FunPtr (M.A -> IO ()))
-- __unique:__ @test_macrosmacro_ext_binding_dep_2_Example_get_use_b@
hs_bindgen_2ea258d8b3c67286 = fmap fromFFIType hs_bindgen_2ea258d8b3c67286_base
{-# NOINLINE use_b_funptr #-}
{-| __C declaration:__ @use_b@

    __defined at:__ @macros\/macro_ext_binding_dep.h 8:6@

    __exported by:__ @macros\/macro_ext_binding_dep.h@
-}
use_b_funptr :: FunPtr (M.A -> IO ())
{-| __C declaration:__ @use_b@

    __defined at:__ @macros\/macro_ext_binding_dep.h 8:6@

    __exported by:__ @macros\/macro_ext_binding_dep.h@
-}
use_b_funptr = unsafePerformIO hs_bindgen_2ea258d8b3c67286