Copyright | Matthew Harm Bekkema 2016 |
---|---|
License | GPL-2 |
Maintainer | mbekkema97@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
- data Mode
- modeS :: Mode
- modeN :: Mode
- modeC :: Mode
- modeL :: Mode
- validModes :: [Mode]
- defaultMode :: Mode
- (<+>) :: Mode -> Mode -> Mode
- combineModes :: [Mode] -> Maybe Mode
- (<->) :: Mode -> Mode -> Maybe Mode
- splitMode :: Mode -> [Mode]
- readModeMay :: String -> Maybe Mode
- readModeDef :: String -> Mode
- modeToConstraint :: Mode -> String
Mode
Represents the sets of characters that generated passwords may contain.
Base modes
Constants
validModes :: [Mode] Source
List of every valid mode
Combining modes
combineModes :: [Mode] -> Maybe Mode Source
Splitting modes
(<->) :: Mode -> Mode -> Maybe Mode Source
Subtracts a mode from another mode. Returns Nothing
if the result would
be empty
Parsing modes
readModeMay :: String -> Maybe Mode Source
readModeDef :: String -> Mode Source
Like readModeMay
, but returns defaultMode
instead of Nothing
.
Convert mode to character set
modeToConstraint :: Mode -> String Source
Get the character set that the specified mode represents