HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleghc-toolchain-0.1.0.0Haskell2010

GHC.Toolchain.Monad

  • 2 types
  • 14 values
newtypenewtype M a
#
Instances5Monad, Functor, Applicative, Alternative, MonadIO
  • Monad MDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.Monad
  • Functor MDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.Monad
  • Applicative MDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.Monad
  • Alternative MDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.Monad
  • MonadIO MDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.Monad
valuethrowEs :: [String] -> M a
#

Throw an error with multiple lines. This should be used rather than `throwE . unlines` to preserve proper logging indentation.

valueifCrossCompiling
  1. :: M a

    what to do when cross-compiling

  2. -> M a

    what to do otherwise

  3. -> M a
#

Branch on whether we can execute target code locally.

File I/O

4 declarations

Logging

4 declarations