This module implements the display modes mechanism, for configuring how the pretty printers display types and terms. Note that the display modes make no difference to the way that types and terms are parsed.
Type | Description |
Function or value | Description |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
show_display_modes ()
Parameters:
unit
|
|
|
|
|
|
|
This is used to determine which term atoms are type-annotated in printed output. In 'Minimal' mode, which is sufficient for disambiguation, a minimal set of atoms to be annotated is chosen according to a heuristic with the intention of maximising readability. In 'Full' mode, every var atom and every polymorphic const atom is type-annotated. The default setting is 'Minimal'.
|
|
This is used to determine which tyvars are marked with an apostrophe char prepended to their name in printed output. In 'Minimal' mode, which is sufficient for disambiguation, only those tyvars with a name that clashes with a type constant's name are marked. In 'Full' mode, all tyvars are marked. The default setting is 'Full'.
|
|
This is used to determine which vars are marked with a '%' char prepended to their name in printed output. In 'Minimal' mode, which is sufficient for disambiguation, only those vars with a name that clashes with a constant's name are marked. In 'Full' mode, all variables are marked. The default setting is 'Minimal'.
|