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

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.