Given a name fname, a name of a C function cname and the desired
Haskell type ftype, this function generates:
A foreign import of
cname, named asfname'.An always-inline MonadIO version of
fname', namedfname.
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11
Modulesdl2-gfx-0.3.0.0Haskell2010
Exposes a way to automatically generate a foreign import alongside its lifted, inlined MonadIO variant. Use this to simplify the package's SDL.Raw.* modules.
Given a name fname, a name of a C function cname and the desired
Haskell type ftype, this function generates:
A foreign import of cname, named as fname'.
An always-inline MonadIO version of fname', named fname.