HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulelifted-base-0.2.3.12Haskell98

Foreign.Marshal.Utils.Lifted

This is a wrapped version of Foreign.Marshal.Utils with types generalized from IO to all monads in either MonadBase or MonadBaseControl.

  • 1 value
valuewith
  1. :: (MonadBaseControl IO m, Storable a)
  2. => a

    value to be poked

  3. -> (Ptr a -> m b)

    computation to run

  4. -> m b
#

Generalized version of with.

Note, when the given function throws an exception any monadic side effects in m will be discarded.