Idris2Doc : Text.Show.Pretty

Text.Show.Pretty

(source)

Reexports

importpublic Text.Show.Value
importpublic Text.Show.PrettyVal

Definitions

valToDoc : Value->Docann
  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: export
valToStr : 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: export
reify : Showa=>a->MaybeValue
Visibility: export
ppDoc : Showa=>a->Docann
  Try to show a value, prettily. If we do not understand the value, then we
just use its standard 'Show' instance.

Visibility: export
ppShow : Showa=>a->String
  Convert a generic value into a pretty 'String', if possible.

Visibility: export
ppDocList : (Foldablef, Showa) =>fa->Docann
  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: export
ppShowList : (Foldablef, Showa) =>fa->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: export
pPrint : Showa=>a->IO ()
  Pretty print a generic value to stdout.

Visibility: export
pPrintList : (Foldablef, Showa) =>fa->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: export
dumpDoc : PrettyVala=>a->Docann
  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: export
dumpStr : PrettyVala=>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: export
dumpIO : PrettyVala=>a->IO ()
  Render a value using the `PrettyVal` interface
and show it to standard out.

Totality: total
Visibility: export
recordPreProc : 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->PreProca

Projections:
.preProc : PreProca->Value->Value
.val : PreProca->a

Hint: 
PrettyVala=>PrettyVal (PreProca)
.preProc : PreProca->Value->Value
Totality: total
Visibility: public export
preProc : PreProca->Value->Value
Totality: total
Visibility: public export
.val : PreProca->a
Totality: total
Visibility: public export
val : PreProca->a
Totality: total
Visibility: public export
ppHide : (Name->Bool) ->a->PreProca
  Hide the given constructors when showing a value.

Visibility: export
ppHideNested : (Name->Bool) ->a->PreProca
  Hide the given constructors when showing a value.
In addition, hide values if all of their children were hidden.

Visibility: export