Copyright | (c) Artem Mavrin 2021 |
---|---|
License | BSD3 |
Maintainer | artemvmavrin@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
Defines the PrettyPrintable
class.
Synopsis
- class PrettyPrintable a where
- prettySeq :: (Foldable t, PrettyPrintable a) => t a -> String
- prettysSeq :: (Foldable t, PrettyPrintable a) => t a -> ShowS
Documentation
class PrettyPrintable a where Source #
Class for types that can be "pretty-printed" in a human-readable format.
pretty :: a -> String Source #
Pretty-print a value.
prettys :: a -> ShowS Source #
Difference-list representation of a pretty-printed value.
Instances
PrettyPrintable String Source # | |
PrettyPrintable a => PrettyPrintable (Formula a) Source # | |
PrettyPrintable a => PrettyPrintable (Judgement a) Source # | |
PrettyPrintable a => PrettyPrintable (Proof a) Source # | |
prettySeq :: (Foldable t, PrettyPrintable a) => t a -> String Source #
Pretty-print a collection of pretty-printable values.
prettysSeq :: (Foldable t, PrettyPrintable a) => t a -> ShowS Source #
Difference-list representation of a pretty-printed collection of pretty-printable values.