char-qq-0.1.1.1: Quasiquoters for characters and codepoints

Safe HaskellNone
LanguageHaskell2010

CharQq

Synopsis

Documentation

ord :: QuasiQuoter Source #

A quasi-quoter which produces a unicode codepoint integer literal of a char. E.g.,

>>> [CharQq.ord|Z|]
90

Works in the context of expressions and patterns.

ords :: QuasiQuoter Source #

A quasi-quoter which produces a list of unicode codepoint integer literals of a sequence of chars. E.g.,

>>> [CharQq.ords|абв|]
[1072,1073,1074]

Works in the context of expressions and patterns.

chr :: QuasiQuoter Source #

A quasi-quoter which produces a char literal from a codepoint. E.g.,

>>> [CharQq.chr|90|]
'Z'

Works in the context of expressions and patterns.