Development.IDE.Graph.KeyMap

hls-graph-2.9.0.0: Haskell Language Server internal graph API

Safe Haskell | None
Language | GHC2021

Development.IDE.Graph.KeyMap

# Documentation

data Key #

#### Instances

Instances details

Show Key # |
Instance details Defined in Development.IDE.Graph.Internal.Key Methods showsPrec :: Int -> Key -> ShowS # show :: Key -> String # showList :: [Key] -> ShowS #
Eq Key # |
Instance details Defined in Development.IDE.Graph.Internal.Key Methods (==) :: Key -> Key -> Bool # (/=) :: Key -> Key -> Bool #
Hashable Key # |
Instance details Defined in Development.IDE.Graph.Internal.Key Methods hashWithSalt :: Int -> Key -> Int # hash :: Key -> Int #

data KeyMap a #

#### Instances

Instances details

Monoid (KeyMap a) # |
Instance details Defined in Development.IDE.Graph.Internal.Key Methods mempty :: KeyMap a # mappend :: KeyMap a -> KeyMap a -> KeyMap a # mconcat :: [KeyMap a] -> KeyMap a #
Semigroup (KeyMap a) # |
Instance details Defined in Development.IDE.Graph.Internal.Key Methods (<>) :: KeyMap a -> KeyMap a -> KeyMap a # sconcat :: NonEmpty (KeyMap a) -> KeyMap a # stimes :: Integral b => b -> KeyMap a -> KeyMap a #
Show a => Show (KeyMap a) # |
Instance details Defined in Development.IDE.Graph.Internal.Key Methods showsPrec :: Int -> KeyMap a -> ShowS # show :: KeyMap a -> String # showList :: [KeyMap a] -> ShowS #
Eq a => Eq (KeyMap a) # |
Instance details Defined in Development.IDE.Graph.Internal.Key Methods (==) :: KeyMap a -> KeyMap a -> Bool # (/=) :: KeyMap a -> KeyMap a -> Bool #
Ord a => Ord (KeyMap a) # |
Instance details Defined in Development.IDE.Graph.Internal.Key Methods compare :: KeyMap a -> KeyMap a -> Ordering # (<) :: KeyMap a -> KeyMap a -> Bool # (<=) :: KeyMap a -> KeyMap a -> Bool # (>) :: KeyMap a -> KeyMap a -> Bool # (>=) :: KeyMap a -> KeyMap a -> Bool # max :: KeyMap a -> KeyMap a -> KeyMap a # min :: KeyMap a -> KeyMap a -> KeyMap a #

mapKeyMap :: (a -> b) -> KeyMap a -> KeyMap b #

insertKeyMap :: Key -> a -> KeyMap a -> KeyMap a #

lookupKeyMap :: Key -> KeyMap a -> Maybe a #

lookupDefaultKeyMap :: a -> Key -> KeyMap a -> a #

fromListKeyMap :: [(Key, a)] -> KeyMap a #

fromListWithKeyMap :: (a -> a -> a) -> [(Key, a)] -> KeyMap a #

toListKeyMap :: KeyMap a -> [(Key, a)] #

elemsKeyMap :: KeyMap a -> [a] #

restrictKeysKeyMap :: KeyMap a -> KeySet -> KeyMap a #