|
|
|
|
|
|
Synopsis |
|
|
|
|
The monad
|
|
|
The monad used by Core-to-Core passes to access common state, register simplification
statistics and so on
| Instances | |
|
|
|
|
Reading from the monad
|
|
|
|
|
|
|
|
|
|
|
|
|
The original name cache is the current mapping from Module and
OccName to a compiler-wide unique Name
|
|
Writing to the monad
|
|
|
|
Lifting into the monad
|
|
|
|
|
Lift an IO operation into CoreM while consuming its SimplCount
|
|
|
Lift an IO operation with 1 argument into another monad
|
|
|
Lift an IO operation with 2 arguments into another monad
|
|
|
Lift an IO operation with 3 arguments into another monad
|
|
liftIO4 :: MonadIO m => (a -> b -> c -> d -> IO e) -> a -> b -> c -> d -> m e | Source |
|
Lift an IO operation with 4 arguments into another monad
|
|
Dealing with annotations
|
|
|
Find all the annotations we currently know about for the given target. Note that no
annotations will be returned if we haven't loaded information about the particular target
you are inquiring about: by default, only those modules that have been imported by the
program being compiled will have been loaded in this way.
To load the information from additional modules, you can use the functions DynamicLoading.forceLoadModuleInterfaces
and DynamicLoading.forceLoadNameModuleInterface, but be aware that doing this indiscriminantly
will impose a performance penalty.
If no deserialization function is supplied, only transient annotations will be returned.
|
|
|
|
Screen output
|
|
|
Output a message to the screen
|
|
|
Output a String message to the screen
|
|
|
Output an error to the screen
|
|
|
Output a string error to the screen
|
|
|
Output a fatal error to the screen. Note this does not by itself cause the compiler to die
|
|
|
Output a fatal string error to the screen. Note this does not by itself cause the compiler to die
|
|
|
Outputs a debugging message at verbosity level of -v or higher
|
|
|
Output a string debugging message at verbosity level of -v or higher
|
|
|
Show some labelled SDoc if a particular flag is set or at a verbosity level of -v -ddump-most or higher
|
|
Getting Names
|
|
|
Attempt to convert a Template Haskell name to one that GHC can
understand. Original TH names such as those you get when you use
the 'foo syntax will be translated to their equivalent GHC name
exactly. Qualified or unqualifed TH names will be dynamically bound
to names in the module being compiled, if possible. Exact TH names
will be bound to the name they represent, exactly.
|
|
Produced by Haddock version 2.6.1 |