value
throwIf :: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Modulebase-4.20.2.0Haskell2010
Routines for testing return values and raising a userError exception
in case of values indicating an error state.
throwIf Like throwIf, but discarding the result
Guards against negative result values
Like throwIfNeg, but discarding the result
Guards against null pointers