| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Stg.Language.Prettyprint
Description
Prettyprinting STG elements in various formats.
- class PrettyStgi a where
- data StgiAnn
- data StateAnn
- data AstAnn
- = Keyword
- | Prim
- | Variable
- | Constructor
- | Semicolon
- renderRich :: Doc StgiAnn -> Text
- renderPlain :: Doc ann -> Text
- prettyprintOldAnsi :: Doc -> Text
Documentation
class PrettyStgi a where Source #
Minimal complete definition
Methods
prettyStgi :: a -> Doc StgiAnn Source #
Instances
Semantic annotations for rendering.
Constructors
| Headline | Style of headlines in the state overview, such as "Heap" and "Frame i". |
| Address | Style of memory addresses, including |
| AddressCore | Style of memory addresses; applied only to the actual address
number, such as |
| ClosureType | Style of the type of a closure, such as BLACKHOLE or FUN. |
| StackFrameType | Style of the stack frame annotation, such as UPD or ARG. |
The different semantic annotations an STG AST element can have.
Constructors
| Keyword | |
| Prim | |
| Variable | |
| Constructor | |
| Semicolon |
renderPlain :: Doc ann -> Text Source #