pretty-display-0.1.4: Typeclass for human-readable display

Safe HaskellSafe
LanguageHaskell2010

Text.Display

Contents

Synopsis

Documentation

mkDt :: Text -> DisplayText Source #

Alias for mkDt

dPrint :: Display a => a -> IO () Source #

Print Display instance.

Re-exports

ppShow :: Show a => a -> String #

Convert a generic value into a pretty String, if possible.

pPrint :: Show a => a -> IO () #

Pretty print a generic value to stdout. This is particularly useful in the GHCi interactive environment.

Types

class Display a where Source #

Minimal complete definition

display

Methods

display :: a -> DisplayText Source #

Instances

Show a => Display a Source # 

Methods

display :: a -> DisplayText Source #