Idris2Doc : Text.PrettyPrint.Bernardy.Interface

Text.PrettyPrint.Bernardy.Interface

(source)

Definitions

interfacePretty : Type->Type
Parameters: a
Constructor: 
MkPretty

Methods:
prettyPrec : Prec->a->Docopts

Implementations:
PrettyChar
PrettyString
PrettyBits8
PrettyBits16
PrettyBits32
PrettyBits64
PrettyInt8
PrettyInt16
PrettyInt32
PrettyInt64
PrettyInteger
PrettyDouble
Pretty ()
PrettyBool
PrettyOrdering
PrettyNat
PrettyInt
Prettya=>Pretty (Maybea)
Prettya=>Prettyb=>Pretty (Eitherab)
Prettya=>Pretty (Lista)
Prettya=>Pretty (List1a)
Prettya=>Pretty (SnocLista)
Prettya=>Prettyb=>Pretty (a, b)
Prettya=>Pretty (Vectna)
Prettyk=>Prettyv=>Pretty (SortedMapkv)
Prettyk=>Pretty (SortedSetk)
prettyPrec : Prettya=>Prec->a->Docopts
Totality: total
Visibility: public export
pretty : Prettya=>a->Docopts
  Alias for `prettyPrec Open`

Totality: total
Visibility: public export
prettyArg : Prettya=>a->Docopts
  Alias for `prettyPrec App`

Totality: total
Visibility: public export
prettyCon : Prec->String->List (Docopts) ->Docopts
  Utility for pretty printing Idris data types.

Constructor name and arguments are layed out on a single line
if and only if they fit the page width
and all pretty printed arguments use only a single line. If
one of these conditions does not hold, the list of arguments is
indented by two spaces and layed out vertically after the constructor
name.

```idris example
prettyCon "Just" [prettyArg v]
```

Totality: total
Visibility: export
prettyField : Prettya=>String->a->Docopts
  Utility for pretty printing Idris record fields.

Field name and value are separated by an equals sign (`=`) and
layed out on a single line if and only if they fit the page width
and the pretty printed values is itself on a single line. If
one of these conditions does not hold, the value is placed on
the next line and indented by two spaces.

Totality: total
Visibility: export
prettyRecord : Prec->String->List (Docopts) ->Docopts
  Utility for pretty printing Idris data types with named arguments.

This uses record syntax for printing the argument list, but is not
limited to single-constructor data types.

Constructor name and arguments are layed out on a single line
if and only if they fit the page width
and all pretty printed arguments use only a single line. If
one of these conditions does not hold, the list of arguments is
indented by two spaces and layed out vertically after the constructor
name.

```idris example
prettyCon "Just" [prettyArg v]
```

Note: Use `prettyField` to pair an argument with its field name.

Totality: total
Visibility: export
ThroughPretty : Prettya=>LayoutOpts=>Interpolationa
Totality: total
Visibility: export