HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulekes-agent-1.3.0.0Haskell2010

Cardano.KESAgent.Util.PlatformPoison

  • 1 value
  • Packagekes-agent-1.3.0.0
  • Exports1
  • LanguageHaskell2010
  • LicenceApache-2.0
  • SourcePlatformPoison.hs
valuepoisonWindows :: Monad m => m ()
#

Throw an error if the host platform is Windows. On other platforms, this is a no-op. This is needed because while the `kes-agent` packages will build cleanly on Windows, essential functionality does not work or cannot be tested. Hence, in order to avoid surprising failures when trying to run the code on Windows, we place poisonWindows calls in any functions that are not supported on Windows to generate an early and loud failure.