Idris2Doc : Language.Reflection.Pretty

Language.Reflection.Pretty

(source)
Pretty Printing of Elab Data-Types

This module can be used in the repl to evaluate, how
syntax is translated to TTImp and Decl representations.
Use `putPretty` together with a quoted expression and
inspect the underlying implementation.

Note, to improve readability, some constructs are pretty printed
as infix operator chains. The operators in question can be found in
module `Language.Reflection.Syntax.Ops`.

REPL Examples:

  :exec putPretty `{{ Name.In.A.Namespace }}
  :exec putPretty `(Just (7 * x))
  :exec putPretty `((1 index : Fin n) -> Vect n t -> t)

Definitions

Opts80 : LayoutOpts
Totality: total
Visibility: public export
putDoc : HasIOio=>DocOpts80->io ()
  Pretty but uncolored output to the terminal

Totality: total
Visibility: export
putPretty : HasIOio=>Prettyt=>t->io ()
  Pretty but uncolored output to the terminal

Totality: total
Visibility: export
0WithName : Type->Type
Totality: total
Visibility: public export
conH : AllPrettyts=>Prec->String->Allidts->Docopts
Totality: total
Visibility: export
recordH : AllPrettyts=>Prec->String->AllWithNamets->Docopts
Totality: total
Visibility: export
op : Prec->Nat->Docopts->List (String, Docopts) ->Docopts
Totality: total
Visibility: export
prettyImplTTImp : PrettyTTImp
Totality: total
Visibility: export
prettyImplArg : PrettyArg
Totality: total
Visibility: export
prettyImplClause : PrettyClause
Totality: total
Visibility: export
prettyImplITy : PrettyITy
Totality: total
Visibility: export