packages feed

hs-bindgen-1.0.0.0: test-artefacts/fixtures/binding-specs/relative_include/sub/consumer/Example/Safe.hs

{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_HADDOCK prune #-}

module Example.Safe
    ( Example.Safe.use_widget
    )
  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 <binding-specs/relative_include/sub/consumer.h>"
  , "void hs_bindgen_13e66cb2f49fb393 ("
  , "  widget_legacy_t *arg1"
  , ")"
  , "{"
  , "  (use_widget)(arg1);"
  , "}"
  ]))

-- __unique:__ @test_bindingspecsrelative_include_Example_Safe_use_widget@
foreign import ccall safe "hs_bindgen_13e66cb2f49fb393" hs_bindgen_13e66cb2f49fb393_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @test_bindingspecsrelative_include_Example_Safe_use_widget@
hs_bindgen_13e66cb2f49fb393 ::
     BG.Ptr Widget_legacy_t
  -> IO ()
hs_bindgen_13e66cb2f49fb393 =
  \x0 ->
    hs_bindgen_13e66cb2f49fb393_base (BG.toFFIType x0)

{-| __C declaration:__ @use_widget@

    __defined at:__ @binding-specs\/relative_include\/sub\/consumer.h 21:6@

    __exported by:__ @binding-specs\/relative_include\/sub\/consumer.h@
-}
use_widget ::
     BG.Ptr Widget_legacy_t
     -- ^ __C declaration:__ @w@
  -> IO ()
use_widget = hs_bindgen_13e66cb2f49fb393