Hoogle Search
Within LTS Haskell 24.69 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
newtype
WitnessMapFor (f :: k -> Type) (w :: k -> Type)witness Data.Type.Witness.Specific.WitnessMap.For A dictionary that is heterogenous up to its simple witness type w. Witnesses are the keys of the dictionary, and the values they witness are the values of the dictionary.
witnessMapForToList :: WitnessMapFor (f :: k -> Type) (w :: k -> Type) -> [SomeFor f w]witness Data.Type.Witness.Specific.WitnessMap.For No documentation available.
type
WitnessMapOf = WitnessMapFor Identitywitness Data.Type.Witness.Specific.WitnessMap.Of A dictionary that is heterogenous up to its simple witness type w. Witnesses are the keys of the dictionary, and the values they witness are the values of the dictionary.
emptyWitnessMapOf :: forall (w :: Type -> Type) . WitnessMapOf wwitness Data.Type.Witness.Specific.WitnessMap.Of An empty dictionary.
witnessMapOfAdd :: w a -> a -> WitnessMapOf w -> WitnessMapOf wwitness Data.Type.Witness.Specific.WitnessMap.Of Add a witness and value as the first entry in the dictionary.
witnessMapOfFold :: Monoid m => WitnessMapOf w -> (forall a . () => w a -> a -> m) -> mwitness Data.Type.Witness.Specific.WitnessMap.Of No documentation available.
witnessMapOfFromList :: forall (w :: Type -> Type) . [SomeOf w] -> WitnessMapOf wwitness Data.Type.Witness.Specific.WitnessMap.Of Create a dictionary from a list of witness/value pairs
witnessMapOfLookup :: TestEquality w => w a -> WitnessMapOf w -> Maybe awitness Data.Type.Witness.Specific.WitnessMap.Of Look up the first value in the dictionary that matches the given witness.
witnessMapOfModify :: TestEquality w => w a -> (a -> a) -> WitnessMapOf w -> WitnessMapOf wwitness Data.Type.Witness.Specific.WitnessMap.Of Modify the first value in the dictionary that matches a particular witness.
witnessMapOfRemove :: TestEquality w => w a -> WitnessMapOf w -> WitnessMapOf wwitness Data.Type.Witness.Specific.WitnessMap.Of Remove the first entry in the dictionary that matches the given witness.