biscuit-haskell-0.2.1.0: Library support for the Biscuit security token
Safe HaskellNone
LanguageHaskell2010

Auth.Biscuit.Symbols

Synopsis

Documentation

data Symbols Source #

Instances

Instances details
Eq Symbols Source # 
Instance details

Defined in Auth.Biscuit.Symbols

Methods

(==) :: Symbols -> Symbols -> Bool #

(/=) :: Symbols -> Symbols -> Bool #

Show Symbols Source # 
Instance details

Defined in Auth.Biscuit.Symbols

newtype SymbolRef Source #

Constructors

SymbolRef 

Fields

Instances

Instances details
Eq SymbolRef Source # 
Instance details

Defined in Auth.Biscuit.Symbols

Show SymbolRef Source # 
Instance details

Defined in Auth.Biscuit.Symbols

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

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.