Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module for custom instance of Data.HashMap.Lazy that decodes from any list of objects that have an id field
Documentation
newtype SnowflakeMap a Source #
SnowflakeMap | |
|
Instances
over :: (HashMap (Snowflake a) a -> HashMap (Snowflake b) b) -> SnowflakeMap a -> SnowflakeMap b Source #
empty :: SnowflakeMap a Source #
singleton :: HasID' a => a -> SnowflakeMap a Source #
null :: SnowflakeMap a -> Bool Source #
size :: SnowflakeMap a -> Int Source #
lookupDefault :: a -> Snowflake a -> SnowflakeMap a -> a Source #
(!) :: SnowflakeMap a -> Snowflake a -> a Source #
insert :: HasID' a => a -> SnowflakeMap a -> SnowflakeMap a Source #
insertWith :: HasID' a => (a -> a -> a) -> a -> SnowflakeMap a -> SnowflakeMap a Source #
delete :: Snowflake a -> SnowflakeMap a -> SnowflakeMap a Source #
adjust :: (a -> a) -> Snowflake a -> SnowflakeMap a -> SnowflakeMap a Source #
update :: (a -> Maybe a) -> Snowflake a -> SnowflakeMap a -> SnowflakeMap a Source #
alter :: (Maybe a -> Maybe a) -> Snowflake a -> SnowflakeMap a -> SnowflakeMap a Source #
union :: SnowflakeMap a -> SnowflakeMap a -> SnowflakeMap a Source #
unionWith :: (a -> a -> a) -> SnowflakeMap a -> SnowflakeMap a -> SnowflakeMap a Source #
unionWithKey :: (Snowflake a -> a -> a -> a) -> SnowflakeMap a -> SnowflakeMap a -> SnowflakeMap a Source #
unions :: [SnowflakeMap a] -> SnowflakeMap a Source #
map :: (a1 -> a2) -> SnowflakeMap a1 -> SnowflakeMap a2 Source #
mapWithKey :: (Snowflake a1 -> a1 -> a2) -> SnowflakeMap a1 -> SnowflakeMap a2 Source #
traverseWithKey :: Applicative f => (Snowflake a1 -> a1 -> f a2) -> SnowflakeMap a1 -> f (SnowflakeMap a2) Source #
difference :: SnowflakeMap a -> SnowflakeMap a -> SnowflakeMap a Source #
differenceWith :: (a -> a -> Maybe a) -> SnowflakeMap a -> SnowflakeMap a -> SnowflakeMap a Source #
intersection :: SnowflakeMap a -> SnowflakeMap a -> SnowflakeMap a Source #
intersectionWith :: (a -> a -> b) -> SnowflakeMap a -> SnowflakeMap a -> SnowflakeMap b Source #
intersectionWithKey :: (Snowflake a -> a -> a -> b) -> SnowflakeMap a -> SnowflakeMap a -> SnowflakeMap b Source #
foldl' :: (a -> b -> a) -> a -> SnowflakeMap b -> a Source #
foldlWithKey' :: (a -> Snowflake b -> b -> a) -> a -> SnowflakeMap b -> a Source #
foldr :: (b -> a -> a) -> a -> SnowflakeMap b -> a Source #
foldrWithKey :: (Snowflake b -> b -> a -> a) -> a -> SnowflakeMap b -> a Source #
filter :: (a -> Bool) -> SnowflakeMap a -> SnowflakeMap a Source #
filterWithKey :: (Snowflake a -> a -> Bool) -> SnowflakeMap a -> SnowflakeMap a Source #
mapMaybe :: (a -> Maybe b) -> SnowflakeMap a -> SnowflakeMap b Source #
mapMaybeWithKey :: (Snowflake a -> a -> Maybe b) -> SnowflakeMap a -> SnowflakeMap b Source #
keys :: SnowflakeMap a -> [Snowflake a] Source #
elems :: SnowflakeMap a -> [a] Source #
toList :: SnowflakeMap a -> [(Snowflake a, a)] Source #
fromList :: HasID' a => [a] -> SnowflakeMap a Source #
fromListWith :: HasID' a => (a -> a -> a) -> [a] -> SnowflakeMap a Source #