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

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 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.