HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

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.