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

Modulesafe-0.3.21Haskell2010

Safe.Partial

ConstraintKind synonym for marking partial functions

  • 1 type
  • Packagesafe-0.3.21
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePartial.hs
typetype Partial = HasCallStack
#

A constraint synonym which denotes that the function is partial, and will (on GHC 8.* and up) produce a stack trace on failure. You may mark your own non-total functions as Partial, if necessary, and this will ensure that they produce useful stack traces.