Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
The TPipelineClass
and MonadUse
classes and associated types
Synopsis
- type TPipelineClass (f :: Type -> Type) (m :: Type -> Type) = (Functor m, MonadIO m, Applicative m, Monad m, MonadUse f m)
- class MonadUse f m where
- use :: f a -> m a
- data PipeEnv = PipeEnv {}
- data PipelineOutput
Documentation
type TPipelineClass (f :: Type -> Type) (m :: Type -> Type) = (Functor m, MonadIO m, Applicative m, Monad m, MonadUse f m) Source #
PipeEnv | |
|
data PipelineOutput Source #
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. |
Instances
Show PipelineOutput Source # | |
Defined in GHC.Driver.Pipeline.Monad showsPrec :: Int -> PipelineOutput -> ShowS # show :: PipelineOutput -> String # showList :: [PipelineOutput] -> ShowS # |