valToDoc : Value -> Doc ann
Pretty print a generic value. Our intention is that the result is
equivalent to the 'Show' instance for the original value, except possibly
easier to understand by a human.
Totality: total
Visibility: exportvalToStr : Value -> String
Pretty print a generic value. Our intention is that the result is
equivalent to the 'Show' instance for the original value, except possibly
easier to understand by a human.
Totality: total
Visibility: exportreify : Show a => a -> Maybe Value
- Visibility: export
ppDoc : Show a => a -> Doc ann
Try to show a value, prettily. If we do not understand the value, then we
just use its standard 'Show' instance.
Visibility: exportppShow : Show a => a -> String
Convert a generic value into a pretty 'String', if possible.
Visibility: exportppDocList : (Foldable f, Show a) => f a -> Doc ann
Pretty print something that may be converted to a list as a list.
Each entry is on a separate line, which means that we don't do clever
pretty printing, and so this works well for large strucutures.
Visibility: exportppShowList : (Foldable f, Show a) => f a -> String
Pretty print something that may be converted to a list as a list.
Each entry is on a separate line, which means that we don't do clever
pretty printing, and so this works well for large strucutures.
Visibility: exportpPrint : Show a => a -> IO ()
Pretty print a generic value to stdout.
Visibility: exportpPrintList : (Foldable f, Show a) => f a -> IO ()
Pretty print something that may be converted to a list as a list.
Each entry is on a separate line, which means that we don't do clever
pretty printing, and so this works well for large strucutures.
Visibility: exportdumpDoc : PrettyVal a => a -> Doc ann
Render a value in the `PrettyVal` interface to a `Doc`.
The benefit of this function is that `PrettyVal` instances may
be derived automatically using generics.
Totality: total
Visibility: exportdumpStr : PrettyVal a => a -> String
Render a value in the `PrettyVal` interface to a `String`.
The benefit of this function is that `PrettyVal` instances may
be derived automatically using generics.
Totality: total
Visibility: exportdumpIO : PrettyVal a => a -> IO ()
Render a value using the `PrettyVal` interface
and show it to standard out.
Totality: total
Visibility: exportrecord PreProc : Type -> Type
This type is used to allow pre-processing of values before showing them.
Totality: total
Visibility: public export
Constructor: MkPreProc : (Value -> Value) -> a -> PreProc a
Projections:
.preProc : PreProc a -> Value -> Value
.val : PreProc a -> a
Hint: PrettyVal a => PrettyVal (PreProc a)
.preProc : PreProc a -> Value -> Value
- Totality: total
Visibility: public export preProc : PreProc a -> Value -> Value
- Totality: total
Visibility: public export .val : PreProc a -> a
- Totality: total
Visibility: public export val : PreProc a -> a
- Totality: total
Visibility: public export ppHide : (Name -> Bool) -> a -> PreProc a
Hide the given constructors when showing a value.
Visibility: exportppHideNested : (Name -> Bool) -> a -> PreProc a
Hide the given constructors when showing a value.
In addition, hide values if all of their children were hidden.
Visibility: export