Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Symbols
- data BlockSymbols
- data ReverseSymbols
- newtype SymbolRef = SymbolRef {}
- newtype PublicKeyRef = PublicKeyRef {}
- getSymbol :: Symbols -> SymbolRef -> Either String Text
- getPublicKey' :: Symbols -> PublicKeyRef -> Either String PublicKey
- addSymbols :: Symbols -> Set Text -> Set PublicKey -> BlockSymbols
- addFromBlock :: Symbols -> BlockSymbols -> Symbols
- registerNewSymbols :: [Text] -> Symbols -> Symbols
- registerNewPublicKeys :: [PublicKey] -> Symbols -> Symbols
- forgetSymbols :: Symbols -> Symbols
- reverseSymbols :: Symbols -> ReverseSymbols
- getSymbolList :: BlockSymbols -> [Text]
- getPkList :: BlockSymbols -> [PublicKey]
- getPkTable :: Symbols -> [PublicKey]
- getSymbolCode :: ReverseSymbols -> Text -> SymbolRef
- getPublicKeyCode :: ReverseSymbols -> PublicKey -> Int64
- newSymbolTable :: Symbols
Documentation
data BlockSymbols Source #
Instances
Semigroup BlockSymbols Source # | |
Defined in Auth.Biscuit.Symbols (<>) :: BlockSymbols -> BlockSymbols -> BlockSymbols # sconcat :: NonEmpty BlockSymbols -> BlockSymbols # stimes :: Integral b => b -> BlockSymbols -> BlockSymbols # | |
Show BlockSymbols Source # | |
Defined in Auth.Biscuit.Symbols showsPrec :: Int -> BlockSymbols -> ShowS # show :: BlockSymbols -> String # showList :: [BlockSymbols] -> ShowS # | |
Eq BlockSymbols Source # | |
Defined in Auth.Biscuit.Symbols (==) :: BlockSymbols -> BlockSymbols -> Bool # (/=) :: BlockSymbols -> BlockSymbols -> Bool # |
data ReverseSymbols Source #
Instances
Semigroup ReverseSymbols Source # | |
Defined in Auth.Biscuit.Symbols (<>) :: ReverseSymbols -> ReverseSymbols -> ReverseSymbols # sconcat :: NonEmpty ReverseSymbols -> ReverseSymbols # stimes :: Integral b => b -> ReverseSymbols -> ReverseSymbols # | |
Show ReverseSymbols Source # | |
Defined in Auth.Biscuit.Symbols showsPrec :: Int -> ReverseSymbols -> ShowS # show :: ReverseSymbols -> String # showList :: [ReverseSymbols] -> ShowS # | |
Eq ReverseSymbols Source # | |
Defined in Auth.Biscuit.Symbols (==) :: ReverseSymbols -> ReverseSymbols -> Bool # (/=) :: ReverseSymbols -> ReverseSymbols -> Bool # |
Instances
Enum SymbolRef Source # | |
Defined in Auth.Biscuit.Symbols succ :: SymbolRef -> SymbolRef # pred :: SymbolRef -> SymbolRef # fromEnum :: SymbolRef -> Int # enumFrom :: SymbolRef -> [SymbolRef] # enumFromThen :: SymbolRef -> SymbolRef -> [SymbolRef] # enumFromTo :: SymbolRef -> SymbolRef -> [SymbolRef] # enumFromThenTo :: SymbolRef -> SymbolRef -> SymbolRef -> [SymbolRef] # | |
Show SymbolRef Source # | |
Eq SymbolRef Source # | |
Ord SymbolRef Source # | |
Defined in Auth.Biscuit.Symbols |
newtype PublicKeyRef Source #
Instances
getPublicKey' :: Symbols -> PublicKeyRef -> Either String PublicKey Source #
addSymbols :: Symbols -> Set Text -> Set PublicKey -> BlockSymbols Source #
Given already existing symbols and a set of symbols used in a block, compute the symbol table carried by this specific block
addFromBlock :: Symbols -> BlockSymbols -> Symbols Source #
Given the symbol table of a protobuf block, update the provided symbol table
forgetSymbols :: Symbols -> Symbols Source #
reverseSymbols :: Symbols -> ReverseSymbols Source #
Reverse a symbol table
getSymbolList :: BlockSymbols -> [Text] Source #
getPkList :: BlockSymbols -> [PublicKey] Source #
getPkTable :: Symbols -> [PublicKey] Source #
getSymbolCode :: ReverseSymbols -> Text -> SymbolRef Source #
Given a reverse symbol table (symbol refs indexed by their textual representation), turn textual representations into symbol refs. This function is partial, the reverse table is guaranteed to contain the expected textual symbols.
getPublicKeyCode :: ReverseSymbols -> PublicKey -> Int64 Source #