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

Modulererebase-1.21.2Haskell2010

Foreign.Marshal.Error

  • 6 values
valuevoid :: IO a -> IO ()
#

Deprecated. use void instead

Discard the return value of an IO action

valuethrowIf
  1. :: (a -> Bool)

    error condition on the result of the IO action

  2. -> (a -> String)

    computes an error message from erroneous results of the IO action

  3. -> IO a

    the IO action to be executed

  4. -> IO a
#

Execute an IO action, throwing a userError if the predicate yields True when applied to the result returned by the IO action. If no exception is raised, return the result of the computation.