gibberish-3.0.0.0: Generate easy-to-remember, hard-to-guess passwords
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Gibberish.Utils

Synopsis

Documentation

numeralConversions :: Map Char [Char] Source #

A mapping from letters to numbers that look like them

symbolConversions :: Map Char [Char] Source #

A mapping from letters to symbols that look like them

update1 :: Monad m => (Char -> m Char) -> Text -> Int -> m Text Source #

updateR :: MonadRandom m => (Char -> m Char) -> Rational -> Text -> m Text Source #

findIndices :: (Char -> Bool) -> Text -> [Int] Source #

O(n) The findIndices function extends findIndex, by returning the indices of all elements satisfying the predicate, in ascending order.

textTraverse :: Monad m => (Char -> m Char) -> Text -> m Text Source #

toQwertyKey :: Char -> Char Source #

Transform a letter-type character to something that's easy to type on a QWERTY keyboard

qwertyKeys :: [Char] Source #

All the characters that are easy to type on a QWERTY keyboard