Pretty Bool | >>> pretty True
True
|
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Char | Instead of (pretty '\n') , consider using line as a more readable
alternative. >>> pretty 'f' <> pretty 'o' <> pretty 'o'
foo
>>> pretty ("string" :: String)
string
|
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Double | >>> pretty (exp 1 :: Double)
2.71828182845904...
|
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Float | >>> pretty (pi :: Float)
3.1415927
|
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Int | >>> pretty (123 :: Int)
123
|
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Int8 | |
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Int16 | |
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Int32 | |
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Int64 | |
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Integer | >>> pretty (2^123 :: Integer)
10633823966279326983230456482242756608
|
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Natural | |
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Word | |
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Word8 | |
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Word16 | |
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Word32 | |
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Word64 | |
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty () | >>> pretty ()
()
The argument is not used, >>> pretty (error "Strict?" :: ())
()
|
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Text | (lazy Doc instance, identical to the strict version) |
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Text | Automatically converts all newlines to line . >>> pretty ("hello\nworld" :: Text)
hello
world
Note that line can be undone by group : >>> group (pretty ("hello\nworld" :: Text))
hello world
Manually use hardline if you definitely want newlines. |
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Void | Finding a good example for printing something that does not exist is hard,
so here is an example of printing a list full of nothing. >>> pretty ([] :: [Void])
[]
|
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty Info Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Expression Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Parent Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Dataform Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty NoSuccess Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Success Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Status Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Source Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Intro Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty TSTP Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty TPTP Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Unit Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty UnitName Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Declaration Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Formula Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty QuantifiedSort Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Unsorted Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Connective Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Quantifier Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Clause Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Literal Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Sign Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Term Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Number Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Type Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty TFF1Sort Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty DistinctObject Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Var Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Atom Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty Language Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty a => Pretty [a] | >>> pretty [1,2,3]
[1, 2, 3]
|
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty a => Pretty (Maybe a) | Ignore Nothing s, print Just contents. >>> pretty (Just True)
True
>>> braces (pretty (Nothing :: Maybe Bool))
{}
>>> pretty [Just 1, Nothing, Just 3, Nothing]
[1, 3]
|
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty a => Pretty (Identity a) | >>> pretty (Identity 1)
1
|
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty a => Pretty (NonEmpty a) | |
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty s => Pretty (Sorted s) Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty s => Pretty (FirstOrder s) Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Named s => Pretty (Name s) Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Named s => Pretty (Reserved s) Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty (Either QuantifiedSort TFF1Sort) Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
Pretty (Either Var Atom) Source # | |
Instance detailsDefined in Data.TPTP.Pretty |
(Pretty a1, Pretty a2) => Pretty (a1, a2) | >>> pretty (123, "hello")
(123, hello)
|
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
(Pretty a1, Pretty a2, Pretty a3) => Pretty (a1, a2, a3) | >>> pretty (123, "hello", False)
(123, hello, False)
|
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |
Pretty a => Pretty (Const a b) | |
Instance detailsDefined in Data.Text.Prettyprint.Doc.Internal |