stgi-1.0.1: Educational implementation of the STG (Spineless Tagless G-machine)

Safe HaskellSafe
LanguageHaskell2010

Stg.Language.Prettyprint

Description

Prettyprinting STG elements in various formats.

Synopsis

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

pretty

Methods

pretty :: a -> Doc

prettyList :: [a] -> Doc

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.