packages feed

hs-bindgen-1.0.0.0: test-artefacts/fixtures/program-analysis/program-slicing/macro_unselected/Example/Safe.hs

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

module Example.Safe
    ( Example.Safe.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 <program-analysis/program-slicing/macro_unselected.h>"
  , "void hs_bindgen_ef8f97cf27661c20 ("
  , "  U arg1"
  , ")"
  , "{"
  , "  (bar)(arg1);"
  , "}"
  ]))

-- __unique:__ @test_programanalysisprogramslici_Example_Safe_bar@
foreign import ccall safe "hs_bindgen_ef8f97cf27661c20" hs_bindgen_ef8f97cf27661c20_base ::
     BG.CInt
  -> IO ()

-- __unique:__ @test_programanalysisprogramslici_Example_Safe_bar@
hs_bindgen_ef8f97cf27661c20 ::
     U
  -> IO ()
hs_bindgen_ef8f97cf27661c20 =
  \x0 ->
    hs_bindgen_ef8f97cf27661c20_base (BG.toFFIType x0)

{-| __C declaration:__ @bar@

    __defined at:__ @program-analysis\/program-slicing\/macro_unselected.h 12:6@

    __exported by:__ @program-analysis\/program-slicing\/macro_unselected.h@
-}
bar ::
     U
     -- ^ __C declaration:__ @x@
  -> IO ()
bar = hs_bindgen_ef8f97cf27661c20