| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
System.Random.NameCase
Description
Expose newtypes of Text to make program tokens
In this module, We represent the very easy operational semantics on the documents with ↓
small = a..z
large = A..Z
num = 0..9
alpha = small | large
alphaNum = alpha | num
symbol = ! | " | # | $ | % | & | | ( | ) | * | + | | | ' | - | . | / | : | ; | = | | ? | @ | [ | | ] | ^ | _ | ` | { | | | } | ~
- newtype PascalName = PascalName {
- unPascalName :: Text
- newtype CamelName = CamelName {
- unCamelName :: Text
- newtype SignName = SignName {
- unSignName :: Text
- newtype VisibleChar = VisibleChar {}
- visibleChars :: [VisibleChar]
- newtype UpperChar = UpperChar {
- unUpperChar :: Char
- upperChars :: [UpperChar]
- newtype LowerChar = LowerChar {
- unLowerChar :: Char
- lowerChars :: [LowerChar]
- newtype AlphaNumChar = AlphaNumChar {}
- alphaNumChars :: [AlphaNumChar]
- pattern AlphaNums :: [Char] -> List' AlphaNumChar
- unAlphaNums :: List' AlphaNumChar -> [Char]
- newtype SymbolChar = SymbolChar {
- unSymbolChar :: Char
- symbolChars :: [SymbolChar]
- pattern Symbols :: [Char] -> List' SymbolChar
- unSymbols :: List' SymbolChar -> [Char]
- newtype List' a = List' {
- unList' :: [a]
- newtype Text' = Text' {}
Documentation
newtype PascalName Source #
Like Konoko, Sugar, and Foo22OGA11RRR at the Random and Arbitrary instance
this = large : {alphaNum}
Constructors
| PascalName | |
Fields
| |
Constructors
| CamelName | |
Fields
| |
Constructors
| SignName | |
Fields
| |
newtype VisibleChar Source #
Similar to 'VisibleChar,
but only visible and ascii characters are allowed
in the Random and the Arbitrary instances
Constructors
| VisibleChar | |
Fields | |
Instances
visibleChars :: [VisibleChar] Source #
All of VisibleChar (the table)
A..Z at the Random and Arbitrary instance
(a subset of VisibleChar)
Constructors
| UpperChar | |
Fields
| |
upperChars :: [UpperChar] Source #
A subset of visibleChars
Constructors
| LowerChar | |
Fields
| |
lowerChars :: [LowerChar] Source #
A subset of visibleChars
newtype AlphaNumChar Source #
Constructors
| AlphaNumChar | |
Fields | |
alphaNumChars :: [AlphaNumChar] Source #
A subset of visibleChars
pattern AlphaNums :: [Char] -> List' AlphaNumChar Source #
>>>xs = AlphaNums ['A', 'b', '3']>>>:t xsList' AlphaNumChar
>>>AlphaNums xs' = xs>>>:t xs'[Char]
unAlphaNums :: List' AlphaNumChar -> [Char] Source #
symbolChars :: [SymbolChar] Source #
A subset of visibleChars
A workaround for the Random orphan instance