| Pretty Void Source # | 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 Prettyprinter.Internal |
| Pretty Int16 Source # | |
Instance detailsDefined in Prettyprinter.Internal |
| Pretty Int32 Source # | |
Instance detailsDefined in Prettyprinter.Internal |
| Pretty Int64 Source # | |
Instance detailsDefined in Prettyprinter.Internal |
| Pretty Int8 Source # | |
Instance detailsDefined in Prettyprinter.Internal |
| Pretty Word16 Source # | |
Instance detailsDefined in Prettyprinter.Internal |
| Pretty Word32 Source # | |
Instance detailsDefined in Prettyprinter.Internal |
| Pretty Word64 Source # | |
Instance detailsDefined in Prettyprinter.Internal |
| Pretty Word8 Source # | |
Instance detailsDefined in Prettyprinter.Internal |
| Pretty Label Source # | |
Instance detailsDefined in JVM.Data.Abstract.Builder.Label |
| Pretty ClassFile Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile |
| Pretty ClassFileAttribute Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile |
| Pretty InnerClassInfo Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile |
| Pretty ClassAccessFlag Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile.AccessFlags |
| Pretty FieldAccessFlag Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile.AccessFlags |
| Pretty MethodAccessFlag Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile.AccessFlags |
| Pretty ClassFileField Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile.Field |
| Pretty ConstantValue Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile.Field |
| Pretty FieldAttribute Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile.Field |
| Pretty ClassFileMethod Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile.Method |
| Pretty CodeAttribute Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile.Method |
| Pretty CodeAttributeData Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile.Method |
| Pretty ExceptionTableEntry Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile.Method |
| Pretty LineNumberTableEntry Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile.Method |
| Pretty MethodAttribute Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile.Method |
| Pretty StackMapFrame Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile.Method |
| Pretty VerificationTypeInfo Source # | |
Instance detailsDefined in JVM.Data.Abstract.ClassFile.Method |
| Pretty BootstrapArgument Source # | |
Instance detailsDefined in JVM.Data.Abstract.ConstantPool |
| Pretty BootstrapMethod Source # | |
Instance detailsDefined in JVM.Data.Abstract.ConstantPool |
| Pretty FieldRef Source # | |
Instance detailsDefined in JVM.Data.Abstract.ConstantPool |
| Pretty MethodHandleEntry Source # | |
Instance detailsDefined in JVM.Data.Abstract.ConstantPool |
| Pretty MethodRef Source # | |
Instance detailsDefined in JVM.Data.Abstract.ConstantPool |
| Pretty MethodDescriptor Source # | |
Instance detailsDefined in JVM.Data.Abstract.Descriptor |
| Pretty ReturnDescriptor Source # | |
Instance detailsDefined in JVM.Data.Abstract.Descriptor |
| Pretty LDCEntry Source # | |
Instance detailsDefined in JVM.Data.Abstract.Instruction |
| Pretty QualifiedClassName Source # | |
Instance detailsDefined in JVM.Data.Abstract.Name |
| Pretty ClassInfoType Source # | |
Instance detailsDefined in JVM.Data.Abstract.Type |
| Pretty FieldType Source # | |
Instance detailsDefined in JVM.Data.Abstract.Type |
| Pretty PrimitiveType Source # | |
Instance detailsDefined in JVM.Data.Abstract.Type |
| Pretty LocalVariable Source # | |
Instance detailsDefined in JVM.Data.Analyse.StackMap |
| Pretty StackEntry Source # | |
Instance detailsDefined in JVM.Data.Analyse.StackMap |
| Pretty JVMVersion Source # | |
Instance detailsDefined in JVM.Data.JVMVersion |
| Pretty Text Source # | 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 Prettyprinter.Internal |
| Pretty Text Source # | (lazy Text instance, identical to the strict version) |
Instance detailsDefined in Prettyprinter.Internal |
| Pretty Integer Source # | >>> pretty (2^123 :: Integer)
10633823966279326983230456482242756608
|
Instance detailsDefined in Prettyprinter.Internal |
| Pretty Natural Source # | |
Instance detailsDefined in Prettyprinter.Internal |
| Pretty () Source # | >>> pretty ()
()
The argument is not used: >>> pretty (error "Strict?" :: ())
()
|
Instance detailsDefined in Prettyprinter.Internal |
| Pretty Bool Source # | >>> pretty True
True
|
Instance detailsDefined in Prettyprinter.Internal |
| Pretty Char Source # | 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 Prettyprinter.Internal |
| Pretty Double Source # | >>> pretty (exp 1 :: Double)
2.71828182845904...
|
Instance detailsDefined in Prettyprinter.Internal |
| Pretty Float Source # | >>> pretty (pi :: Float)
3.1415927
|
Instance detailsDefined in Prettyprinter.Internal |
| Pretty Int Source # | >>> pretty (123 :: Int)
123
|
Instance detailsDefined in Prettyprinter.Internal |
| Pretty Word Source # | |
Instance detailsDefined in Prettyprinter.Internal |
| Pretty a => Pretty (NonEmpty a) Source # | |
Instance detailsDefined in Prettyprinter.Internal |
| Pretty a => Pretty (Identity a) Source # | >>> pretty (Identity 1)
1
|
Instance detailsDefined in Prettyprinter.Internal |
| Pretty a => Pretty (TypeMergingList a) Source # | |
Instance detailsDefined in Data.TypeMergingList |
| Pretty label => Pretty (Instruction' label) Source # | |
Instance detailsDefined in JVM.Data.Abstract.Instruction |
| Pretty (Doc a) Source # | |
Instance detailsDefined in JVM.Data.Pretty |
| Pretty a => Pretty (Maybe a) Source # | Ignore Nothings, print Just contents. >>> pretty (Just True)
True
>>> braces (pretty (Nothing :: Maybe Bool))
{}
>>> pretty [Just 1, Nothing, Just 3, Nothing]
[1, 3]
|
Instance detailsDefined in Prettyprinter.Internal |
| Pretty a => Pretty [a] Source # | >>> pretty [1,2,3]
[1, 2, 3]
|
Instance detailsDefined in Prettyprinter.Internal |
| (Pretty a1, Pretty a2) => Pretty (a1, a2) Source # | >>> pretty (123, "hello")
(123, hello)
|
Instance detailsDefined in Prettyprinter.Internal |
| Pretty a => Pretty (Const a b) Source # | |
Instance detailsDefined in Prettyprinter.Internal |
| (Pretty a1, Pretty a2, Pretty a3) => Pretty (a1, a2, a3) Source # | >>> pretty (123, "hello", False)
(123, hello, False)
|
Instance detailsDefined in Prettyprinter.Internal |