HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

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.

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