Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class PrettyPrint a where
- prettyPrint :: a -> String
- newtype Pretty a = Pretty a
Documentation
class PrettyPrint a where Source #
A class for ad hoc pretty-printers.
Nothing
prettyPrint :: a -> String Source #
default prettyPrint :: Show a => a -> String Source #
Instances
PrettyPrint Char Source # | Display the character without quotes. |
Defined in Little.Earley.Internal.Pretty prettyPrint :: Char -> String Source # | |
Show a => PrettyPrint a Source # | |
Defined in Little.Earley.Internal.PrettyOrphan prettyPrint :: a -> String Source # | |
PrettyPrint String Source # | Display the string without quotes. |
Defined in Little.Earley.Internal.Pretty prettyPrint :: String -> String Source # | |
(PrettyPrint n, PrettyPrint c) => PrettyPrint (Result n t c) Source # | |
Defined in Little.Earley.Internal.Result prettyPrint :: Result n t c -> String Source # |
Wrapper whose Show
instance uses PrettyPrint
.
This provides a convenient and explicit way to display results nicely in the
REPL. See also pparse
.
Pretty a |