| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Stg.Language.Prettyprint
Description
Prettyprinting STG elements in various formats.
- class Pretty a where
- pretty :: a -> Doc
- prettyList :: [a] -> Doc
- prettyprint :: Pretty a => a -> Text
- prettyprintPlain :: Pretty a => a -> Text
Documentation
class Pretty a where
The member prettyList is only used to define the instance Pretty
a => Pretty [a]. In normal circumstances only the pretty function
is used.
Minimal complete definition
Instances
| Pretty Bool | |
| Pretty Char | |
| Pretty Double | |
| Pretty Float | |
| Pretty Int | |
| Pretty Integer | |
| Pretty () | |
| Pretty Doc | |
| Pretty Rendering | |
| Pretty Delta | |
| Pretty Constr | |
| Pretty Atom | |
| Pretty Var | |
| Pretty PrimOp | |
| Pretty Literal | |
| Pretty DefaultAlt | |
| Pretty PrimitiveAlt | |
| Pretty AlgebraicAlt | |
| Pretty Alts | |
| Pretty Expr | |
| Pretty Rec | |
| Pretty LambdaType | |
| Pretty LambdaForm | |
| Pretty Binds | |
| Pretty Program | |
| Pretty HeapObject | |
| Pretty Heap | |
| Pretty Closure | |
| Pretty InfoDetail | |
| Pretty StateError | |
| Pretty NotInScope | |
| Pretty StateTransition | |
| Pretty InfoShort | |
| Pretty Info | |
| Pretty Locals | |
| Pretty Globals | |
| Pretty Code | |
| Pretty Value | |
| Pretty MemAddr | |
| Pretty StackFrame | |
| Pretty StgState | |
| Pretty a => Pretty [a] | |
| Pretty a => Pretty (Maybe a) | |
| Show a => Pretty (Result a) | |
| Pretty a => Pretty (Stack a) | |
| (Pretty a, Pretty b) => Pretty (a, b) | |
| (Pretty k, Pretty v) => Pretty (Mapping k v) | |
| (Pretty a, Pretty b, Pretty c) => Pretty (a, b, c) |
prettyprint :: Pretty a => a -> Text Source
Prettyprint a value as Text, including styles such as colours.
prettyprintPlain :: Pretty a => a -> Text Source
Prettyprint a value as Text, stripped off all style information such as
colours.