Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Symbols
- data BlockSymbols
- data ReverseSymbols
- newtype SymbolRef = SymbolRef {}
- getSymbol :: Symbols -> SymbolRef -> Either String Text
- addSymbols :: Symbols -> Set Text -> BlockSymbols
- addFromBlock :: Symbols -> BlockSymbols -> Symbols
- addFromBlocks :: [[Text]] -> Symbols
- reverseSymbols :: Symbols -> ReverseSymbols
- getSymbolList :: BlockSymbols -> [Text]
- getSymbolCode :: ReverseSymbols -> Text -> SymbolRef
- newSymbolTable :: Symbols
Documentation
data BlockSymbols Source #
Instances
Eq BlockSymbols Source # | |
Defined in Auth.Biscuit.Symbols (==) :: BlockSymbols -> BlockSymbols -> Bool # (/=) :: BlockSymbols -> BlockSymbols -> Bool # | |
Show BlockSymbols Source # | |
Defined in Auth.Biscuit.Symbols showsPrec :: Int -> BlockSymbols -> ShowS # show :: BlockSymbols -> String # showList :: [BlockSymbols] -> ShowS # | |
Semigroup BlockSymbols Source # | |
Defined in Auth.Biscuit.Symbols (<>) :: BlockSymbols -> BlockSymbols -> BlockSymbols # sconcat :: NonEmpty BlockSymbols -> BlockSymbols # stimes :: Integral b => b -> BlockSymbols -> BlockSymbols # |
data ReverseSymbols Source #
Instances
Eq ReverseSymbols Source # | |
Defined in Auth.Biscuit.Symbols (==) :: ReverseSymbols -> ReverseSymbols -> Bool # (/=) :: ReverseSymbols -> ReverseSymbols -> Bool # | |
Show ReverseSymbols Source # | |
Defined in Auth.Biscuit.Symbols showsPrec :: Int -> ReverseSymbols -> ShowS # show :: ReverseSymbols -> String # showList :: [ReverseSymbols] -> ShowS # | |
Semigroup ReverseSymbols Source # | |
Defined in Auth.Biscuit.Symbols (<>) :: ReverseSymbols -> ReverseSymbols -> ReverseSymbols # sconcat :: NonEmpty ReverseSymbols -> ReverseSymbols # stimes :: Integral b => b -> ReverseSymbols -> ReverseSymbols # |
Instances
addSymbols :: Symbols -> Set Text -> 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
addFromBlocks :: [[Text]] -> Symbols Source #
Compute a global symbol table from a series of block symbol tables
reverseSymbols :: Symbols -> ReverseSymbols Source #
Reverse a symbol table
getSymbolList :: BlockSymbols -> [Text] 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.