char-qq-0.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 integral literals of a sequence of chars. E.g.,

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

Works in the context of expressions and patterns.