HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulesdl2-image-2.1.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.

Synopsis
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.