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

Modulecabal-install-3.12.1.0Haskell2010

Distribution.Client.Signal

  • 1 type
  • 1 value

Install a signal handler that initiates a controlled shutdown on receiving SIGTERM by throwing an asynchronous exception at the main thread. Must be called from the main thread.

It is a noop on Windows.

datadata Terminated
#

Terminated is an asynchronous exception, thrown when SIGTERM is received. It's to kill what UserInterrupt is to Ctrl-C.

Instances2Show, Exception