Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Warning: This module is not considered part of Burrito's public API. As such, it may change at any time. Use it with caution!.
Documentation
Represents a single logical character in a variable name.
Encoded Char Char | A percent encoded triple. Note that this represents three literal
characters in the input, even though logically we always treat it as one
character. The two arguments are the high and the low hexadecimal digits,
respectively. This representation intentially keeps track of their case,
so as to avoid confusing values like |
Unencoded Char | A literal unencoded character. You should use |
makeEncoded :: Char -> Char -> Maybe VarChar Source #
Makes sure that both characters are valid hexadecimal digits. If they are,
returns an Encoded
character. Otherwise returns nothing.