HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulesdl2-gfx-0.3.0.0Haskell2010

SDL.Raw.Helper

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.

  • 1 value
valueliftF :: String -> String -> Q Type -> Q [Dec]
#

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.