Prettyprinter.Symbols.Unicode

prettyprinter-1.7.1: A modern, easy to use, well-documented, extensible pretty-printer.

Safe Haskell | Safe-Inferred
Language | Haskell2010

Prettyprinter.Symbols.Unicode

Contents

- Quotes
  - Enclosing
  - Standalone
- Various typographical symbols
- Currencies

Description

A collection of predefined Unicode values outside of ASCII range. For ASCII, see Prettyprinter.Symbols.Ascii.

Synopsis

- d9966quotes :: Doc ann -> Doc ann
- d6699quotes :: Doc ann -> Doc ann
- s96quotes :: Doc ann -> Doc ann
- s69quotes :: Doc ann -> Doc ann
- dGuillemetsOut :: Doc ann -> Doc ann
- dGuillemetsIn :: Doc ann -> Doc ann
- sGuillemetsOut :: Doc ann -> Doc ann
- sGuillemetsIn :: Doc ann -> Doc ann
- b99dquote :: Doc ann
- t66dquote :: Doc ann
- t99dquote :: Doc ann
- b9quote :: Doc ann
- t6quote :: Doc ann
- t9quote :: Doc ann
- rdGuillemet :: Doc ann
- ldGuillemet :: Doc ann
- rsGuillemet :: Doc ann
- lsGuillemet :: Doc ann
- bullet :: Doc ann
- endash :: Doc ann
- euro :: Doc ann
- cent :: Doc ann
- yen :: Doc ann
- pound :: Doc ann

# Quotes

## Enclosing

d9966quotes :: Doc ann -> Doc ann #

Double „99-66“ quotes, as used in German typography.

    >>> putDoc (d9966quotes "·")
    „·“

d6699quotes :: Doc ann -> Doc ann #

Double “66-99” quotes, as used in English typography.

    >>> putDoc (d6699quotes "·")
    “·”

s96quotes :: Doc ann -> Doc ann #

Single ‚9-6‘ quotes, as used in German typography.

    >>> putDoc (s96quotes "·")
    ‚·‘

s69quotes :: Doc ann -> Doc ann #

Single ‘6-9’ quotes, as used in English typography.

    >>> putDoc (s69quotes "·")
    ‘·’

dGuillemetsOut :: Doc ann -> Doc ann #

Double «guillemets», pointing outwards (without adding any spacing).

    >>> putDoc (dGuillemetsOut "·")
    «·»

dGuillemetsIn :: Doc ann -> Doc ann #

Double »guillemets«, pointing inwards (without adding any spacing).

    >>> putDoc (dGuillemetsIn "·")
    »·«

sGuillemetsOut :: Doc ann -> Doc ann #

Single ‹guillemets›, pointing outwards (without adding any spacing).

    >>> putDoc (sGuillemetsOut "·")
    ‹·›

sGuillemetsIn :: Doc ann -> Doc ann #

Single ›guillemets‹, pointing inwards (without adding any spacing).

    >>> putDoc (sGuillemetsIn "·")
    ›·‹

## Standalone

b99dquote :: Doc ann #

Bottom „99“ style double quotes.

    >>> putDoc b99dquote
    „

t66dquote :: Doc ann #

Top “66” style double quotes.

    >>> putDoc t66dquote
    “

t99dquote :: Doc ann #

Top “99” style double quotes.

    >>> putDoc t99dquote
    ”

b9quote :: Doc ann #

Bottom ‚9‘ style single quote.

    >>> putDoc b9quote
    ‚

t6quote :: Doc ann #

Top ‘66’ style single quote.

    >>> putDoc t6quote
    ‘

t9quote :: Doc ann #

Top ‘9’ style single quote.

    >>> putDoc t9quote
    ’

rdGuillemet :: Doc ann #

Right-pointing double guillemets

    >>> putDoc rdGuillemet
    »

ldGuillemet :: Doc ann #

Left-pointing double guillemets

    >>> putDoc ldGuillemet
    «

rsGuillemet :: Doc ann #

Right-pointing single guillemets

    >>> putDoc rsGuillemet
    ›

lsGuillemet :: Doc ann #

Left-pointing single guillemets

    >>> putDoc lsGuillemet
    ‹

# Various typographical symbols

bullet :: Doc ann #

    >>> putDoc bullet
    •

endash :: Doc ann #

    >>> putDoc endash
    –

# Currencies

euro :: Doc ann #

    >>> putDoc euro
    €

cent :: Doc ann #

    >>> putDoc cent
    ¢

yen :: Doc ann #

    >>> putDoc yen
    ¥

pound :: Doc ann #

    >>> putDoc pound
    £