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

Moduleghc-9.10.3GHC2021

GHC.Driver.Pipeline.Monad

The TPipelineClass and MonadUse classes and associated types

  • 3 types
  • 1 class
  • Packageghc-9.10.3
  • Exports4
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceMonad.hs
classclass MonadUse (f :: k -> Type) (m :: k -> Type) where
#

Lift a f action into an m action.

Methods

  • use :: f a -> m a
Instances1MonadUse
datadata PipelineOutput
#

Constructors

  • Temporary TempFileLifetime

    Output should be to a temporary file: we're going to run more compilation steps on this output later.

  • Persistent

    We want a persistent file, i.e. a file in the current directory derived from the input filename, but with the appropriate extension. eg. in "ghc -c Foo.hs" the output goes into ./Foo.o.

  • SpecificFile

    The output must go into the specific outputFile in DynFlags. We don't store the filename in the constructor as it changes when doing -dynamic-too.

  • NoOutputFile

    No output should be created, like in Interpreter or NoBackend.

Instances1Show