ghc-dump-util-0.1.0.0: Handy tools for working with @ghc-dump@ dumps.

Safe HaskellNone
LanguageHaskell2010

GhcDump.Pretty

Contents

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 #

Instances

Pretty Bool 

Methods

pretty :: Bool -> Doc #

prettyList :: [Bool] -> Doc #

Pretty Char 

Methods

pretty :: Char -> Doc #

prettyList :: [Char] -> Doc #

Pretty Double 

Methods

pretty :: Double -> Doc #

prettyList :: [Double] -> Doc #

Pretty Float 

Methods

pretty :: Float -> Doc #

prettyList :: [Float] -> Doc #

Pretty Int 

Methods

pretty :: Int -> Doc #

prettyList :: [Int] -> Doc #

Pretty Integer 

Methods

pretty :: Integer -> Doc #

prettyList :: [Integer] -> Doc #

Pretty () 

Methods

pretty :: () -> Doc #

prettyList :: [()] -> Doc #

Pretty Doc 

Methods

pretty :: Doc -> Doc #

prettyList :: [Doc] -> Doc #

Pretty a => Pretty [a] 

Methods

pretty :: [a] -> Doc #

prettyList :: [[a]] -> Doc #

Pretty a => Pretty (Maybe a) 

Methods

pretty :: Maybe a -> Doc #

prettyList :: [Maybe a] -> Doc #

(Pretty a, Pretty b) => Pretty (a, b) 

Methods

pretty :: (a, b) -> Doc #

prettyList :: [(a, b)] -> Doc #

(Pretty a, Pretty b, Pretty c) => Pretty (a, b, c) 

Methods

pretty :: (a, b, c) -> Doc #

prettyList :: [(a, b, c)] -> Doc #

hang' :: Doc -> Int -> Doc -> Doc Source #

Orphan instances