Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- newtype PgpWordlist = PgpWordlist (AltList EvenWord OddWord)
- data TranslationError
- newtype EvenWord = EvenWord {
- unEvenWord :: Text
- newtype OddWord = OddWord {}
Documentation
newtype PgpWordlist Source #
Abstract representation of a PGP word list.
Instances
Eq PgpWordlist Source # | |
Defined in Data.Text.PgpWordlist.Internal.Types (==) :: PgpWordlist -> PgpWordlist -> Bool # (/=) :: PgpWordlist -> PgpWordlist -> Bool # | |
Ord PgpWordlist Source # | |
Defined in Data.Text.PgpWordlist.Internal.Types compare :: PgpWordlist -> PgpWordlist -> Ordering # (<) :: PgpWordlist -> PgpWordlist -> Bool # (<=) :: PgpWordlist -> PgpWordlist -> Bool # (>) :: PgpWordlist -> PgpWordlist -> Bool # (>=) :: PgpWordlist -> PgpWordlist -> Bool # max :: PgpWordlist -> PgpWordlist -> PgpWordlist # min :: PgpWordlist -> PgpWordlist -> PgpWordlist # | |
Show PgpWordlist Source # | |
Defined in Data.Text.PgpWordlist.Internal.Types showsPrec :: Int -> PgpWordlist -> ShowS # show :: PgpWordlist -> String # showList :: [PgpWordlist] -> ShowS # |
data TranslationError Source #
Possible translation errors from a list of PGP words to binary format.
BadWord Text | Word is not recognized |
BadParity Text Word8 | Word is recognized, but from the wrong alphabet. Duplicates, omissions, and neighbour transpositions are often cause for this. |
Instances
Eq TranslationError Source # | |
Defined in Data.Text.PgpWordlist.Internal.Types (==) :: TranslationError -> TranslationError -> Bool # (/=) :: TranslationError -> TranslationError -> Bool # | |
Ord TranslationError Source # | |
Defined in Data.Text.PgpWordlist.Internal.Types compare :: TranslationError -> TranslationError -> Ordering # (<) :: TranslationError -> TranslationError -> Bool # (<=) :: TranslationError -> TranslationError -> Bool # (>) :: TranslationError -> TranslationError -> Bool # (>=) :: TranslationError -> TranslationError -> Bool # max :: TranslationError -> TranslationError -> TranslationError # min :: TranslationError -> TranslationError -> TranslationError # | |
Show TranslationError Source # | |
Defined in Data.Text.PgpWordlist.Internal.Types showsPrec :: Int -> TranslationError -> ShowS # show :: TranslationError -> String # showList :: [TranslationError] -> ShowS # |
Word that is supposed to occur in an even position