| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.Text.PgpWordlist.Internal.Types
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.
Constructors
| PgpWordlist (AltList EvenWord OddWord) |
Instances
| Eq PgpWordlist Source # | |
Defined in Data.Text.PgpWordlist.Internal.Types | |
| Ord PgpWordlist Source # | |
Defined in Data.Text.PgpWordlist.Internal.Types Methods 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 Methods 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.
Constructors
| 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 Methods (==) :: TranslationError -> TranslationError -> Bool # (/=) :: TranslationError -> TranslationError -> Bool # | |
| Ord TranslationError Source # | |
Defined in Data.Text.PgpWordlist.Internal.Types Methods 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 Methods showsPrec :: Int -> TranslationError -> ShowS # show :: TranslationError -> String # showList :: [TranslationError] -> ShowS # | |
Word that is supposed to occur in an even position
Constructors
| EvenWord | |
Fields
| |