HORIZON HASKELLDocslts/ghc-10.0.x04404a62026-10-19Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 04404a6 · 2026-10-19

Moduleghc-toolchain-0.1.0.0Haskell2010

GHC.Toolchain.Monad

Contents
  1. File I/O
  2. Logging
Synopsis
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

Logging