HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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