Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Little.Earley.Internal.Pretty
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.
Minimal complete definition
Nothing
Instances
PrettyPrint Char Source # | Display the character without quotes. |
Defined in Little.Earley.Internal.Pretty Methods prettyPrint :: Char -> String Source # | |
Show a => PrettyPrint a Source # | |
Defined in Little.Earley.Internal.PrettyOrphan Methods prettyPrint :: a -> String Source # | |
PrettyPrint String Source # | Display the string without quotes. |
Defined in Little.Earley.Internal.Pretty Methods prettyPrint :: String -> String Source # | |
(PrettyPrint n, PrettyPrint t, PrettyPrint c) => PrettyPrint (Result n t c) Source # | |
Defined in Little.Earley.Internal.Result Methods 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
.
Constructors
Pretty a |