Hoopl.Unique

ghc-8.4.4: The GHC API

Safe Haskell | Safe
Language | Haskell2010

Hoopl.Unique

# Documentation

type Unique = Int #

data UniqueMap v #

Instances

Functor UniqueMap # |
Instance details Defined in Hoopl.Unique Methods fmap :: (a -> b) -> UniqueMap a -> UniqueMap b Source # (<$) :: a -> UniqueMap b -> UniqueMap a Source #
Foldable UniqueMap # |
Instance details Defined in Hoopl.Unique Methods fold :: Monoid m => UniqueMap m -> m Source # foldMap :: Monoid m => (a -> m) -> UniqueMap a -> m Source # foldr :: (a -> b -> b) -> b -> UniqueMap a -> b Source # foldr' :: (a -> b -> b) -> b -> UniqueMap a -> b Source # foldl :: (b -> a -> b) -> b -> UniqueMap a -> b Source # foldl' :: (b -> a -> b) -> b -> UniqueMap a -> b Source # foldr1 :: (a -> a -> a) -> UniqueMap a -> a Source # foldl1 :: (a -> a -> a) -> UniqueMap a -> a Source # toList :: UniqueMap a -> [a] Source # null :: UniqueMap a -> Bool Source # length :: UniqueMap a -> Int Source # elem :: Eq a => a -> UniqueMap a -> Bool Source # maximum :: Ord a => UniqueMap a -> a Source # minimum :: Ord a => UniqueMap a -> a Source # sum :: Num a => UniqueMap a -> a Source # product :: Num a => UniqueMap a -> a Source #
Traversable UniqueMap # |
Instance details Defined in Hoopl.Unique Methods traverse :: Applicative f => (a -> f b) -> UniqueMap a -> f (UniqueMap b) Source # sequenceA :: Applicative f => UniqueMap (f a) -> f (UniqueMap a) Source # mapM :: Monad m => (a -> m b) -> UniqueMap a -> m (UniqueMap b) Source # sequence :: Monad m => UniqueMap (m a) -> m (UniqueMap a) Source #
IsMap UniqueMap # |
Instance details Defined in Hoopl.Unique Associated Types type KeyOf UniqueMap :: * # Methods mapNull :: UniqueMap a -> Bool # mapSize :: UniqueMap a -> Int # mapMember :: KeyOf UniqueMap -> UniqueMap a -> Bool # mapLookup :: KeyOf UniqueMap -> UniqueMap a -> Maybe a # mapFindWithDefault :: a -> KeyOf UniqueMap -> UniqueMap a -> a # mapEmpty :: UniqueMap a # mapSingleton :: KeyOf UniqueMap -> a -> UniqueMap a # mapInsert :: KeyOf UniqueMap -> a -> UniqueMap a -> UniqueMap a # mapInsertWith :: (a -> a -> a) -> KeyOf UniqueMap -> a -> UniqueMap a -> UniqueMap a # mapDelete :: KeyOf UniqueMap -> UniqueMap a -> UniqueMap a # mapUnion :: UniqueMap a -> UniqueMap a -> UniqueMap a # mapUnionWithKey :: (KeyOf UniqueMap -> a -> a -> a) -> UniqueMap a -> UniqueMap a -> UniqueMap a # mapDifference :: UniqueMap a -> UniqueMap a -> UniqueMap a # mapIntersection :: UniqueMap a -> UniqueMap a -> UniqueMap a # mapIsSubmapOf :: Eq a => UniqueMap a -> UniqueMap a -> Bool # mapMap :: (a -> b) -> UniqueMap a -> UniqueMap b # mapMapWithKey :: (KeyOf UniqueMap -> a -> b) -> UniqueMap a -> UniqueMap b # mapFold :: (a -> b -> b) -> b -> UniqueMap a -> b # mapFoldWithKey :: (KeyOf UniqueMap -> a -> b -> b) -> b -> UniqueMap a -> b # mapFilter :: (a -> Bool) -> UniqueMap a -> UniqueMap a # mapElems :: UniqueMap a -> [a] # mapKeys :: UniqueMap a -> [KeyOf UniqueMap] # mapToList :: UniqueMap a -> [(KeyOf UniqueMap, a)] # mapFromList :: [(KeyOf UniqueMap, a)] -> UniqueMap a # mapFromListWith :: (a -> a -> a) -> [(KeyOf UniqueMap, a)] -> UniqueMap a #
Eq v => Eq (UniqueMap v) # |
Instance details Defined in Hoopl.Unique Methods (==) :: UniqueMap v -> UniqueMap v -> Bool # (/=) :: UniqueMap v -> UniqueMap v -> Bool #
Ord v => Ord (UniqueMap v) # |
Instance details Defined in Hoopl.Unique Methods compare :: UniqueMap v -> UniqueMap v -> Ordering # (<) :: UniqueMap v -> UniqueMap v -> Bool # (<=) :: UniqueMap v -> UniqueMap v -> Bool # (>) :: UniqueMap v -> UniqueMap v -> Bool # (>=) :: UniqueMap v -> UniqueMap v -> Bool # max :: UniqueMap v -> UniqueMap v -> UniqueMap v # min :: UniqueMap v -> UniqueMap v -> UniqueMap v #
Show v => Show (UniqueMap v) # |
Instance details Defined in Hoopl.Unique Methods showsPrec :: Int -> UniqueMap v -> ShowS Source # show :: UniqueMap v -> String Source # showList :: [UniqueMap v] -> ShowS Source #
type KeyOf UniqueMap # |
Instance details Defined in Hoopl.Unique type KeyOf UniqueMap = Unique

data UniqueSet #

Instances

Eq UniqueSet # |
Instance details Defined in Hoopl.Unique Methods (==) :: UniqueSet -> UniqueSet -> Bool # (/=) :: UniqueSet -> UniqueSet -> Bool #
Ord UniqueSet # |
Instance details Defined in Hoopl.Unique Methods compare :: UniqueSet -> UniqueSet -> Ordering # (<) :: UniqueSet -> UniqueSet -> Bool # (<=) :: UniqueSet -> UniqueSet -> Bool # (>) :: UniqueSet -> UniqueSet -> Bool # (>=) :: UniqueSet -> UniqueSet -> Bool # max :: UniqueSet -> UniqueSet -> UniqueSet # min :: UniqueSet -> UniqueSet -> UniqueSet #
Show UniqueSet # |
Instance details Defined in Hoopl.Unique Methods showsPrec :: Int -> UniqueSet -> ShowS Source # show :: UniqueSet -> String Source # showList :: [UniqueSet] -> ShowS Source #
IsSet UniqueSet # |
Instance details Defined in Hoopl.Unique Associated Types type ElemOf UniqueSet :: * # Methods setNull :: UniqueSet -> Bool # setSize :: UniqueSet -> Int # setMember :: ElemOf UniqueSet -> UniqueSet -> Bool # setEmpty :: UniqueSet # setSingleton :: ElemOf UniqueSet -> UniqueSet # setInsert :: ElemOf UniqueSet -> UniqueSet -> UniqueSet # setDelete :: ElemOf UniqueSet -> UniqueSet -> UniqueSet # setUnion :: UniqueSet -> UniqueSet -> UniqueSet # setDifference :: UniqueSet -> UniqueSet -> UniqueSet # setIntersection :: UniqueSet -> UniqueSet -> UniqueSet # setIsSubsetOf :: UniqueSet -> UniqueSet -> Bool # setFold :: (ElemOf UniqueSet -> b -> b) -> b -> UniqueSet -> b # setElems :: UniqueSet -> [ElemOf UniqueSet] # setFromList :: [ElemOf UniqueSet] -> UniqueSet #
type ElemOf UniqueSet # |
Instance details Defined in Hoopl.Unique type ElemOf UniqueSet = Unique

intToUnique :: Int -> Unique #