| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
System.Random.NameCase.Combinators
Description
Please see NameCase
- elementsR :: RandomGen g => [a] -> (a -> Int) -> (a, a) -> g -> (a, g)
- errorOnUnexpected :: String -> String -> a
- 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
errorOnUnexpected :: String -> String -> a Source #
Break the program. Notify that an error on unexpected conditions.
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