ghc-6.12.3: The GHC API
Source code
Contents
Index
UniqFM
Contents
Unique-keyed mappings
Manipulating those mappings
Synopsis
data
UniqFM
ele
=
EmptyUFM
|
LeafUFM
!
FastInt
ele
|
NodeUFM
!
FastInt
!
FastInt
(
UniqFM
ele) (
UniqFM
ele)
emptyUFM
::
UniqFM
elt
unitUFM
::
Uniquable
key => key -> elt ->
UniqFM
elt
unitDirectlyUFM
::
Unique
-> elt ->
UniqFM
elt
listToUFM
::
Uniquable
key => [(key, elt)] ->
UniqFM
elt
listToUFM_Directly
:: [(
Unique
, elt)] ->
UniqFM
elt
listToUFM_C
::
Uniquable
key => (elt -> elt -> elt) -> [(key, elt)] ->
UniqFM
elt
addToUFM
::
Uniquable
key =>
UniqFM
elt -> key -> elt ->
UniqFM
elt
addToUFM_C
::
Uniquable
key => (elt -> elt -> elt) ->
UniqFM
elt -> key -> elt ->
UniqFM
elt
addToUFM_Acc
::
Uniquable
key => (elt -> elts -> elts) -> (elt -> elts) ->
UniqFM
elts -> key -> elt ->
UniqFM
elts
addListToUFM
::
Uniquable
key =>
UniqFM
elt -> [(key, elt)] ->
UniqFM
elt
addListToUFM_C
::
Uniquable
key => (elt -> elt -> elt) ->
UniqFM
elt -> [(key, elt)] ->
UniqFM
elt
addToUFM_Directly
::
UniqFM
elt ->
Unique
-> elt ->
UniqFM
elt
addListToUFM_Directly
::
UniqFM
elt -> [(
Unique
, elt)] ->
UniqFM
elt
delFromUFM
::
Uniquable
key =>
UniqFM
elt -> key ->
UniqFM
elt
delFromUFM_Directly
::
UniqFM
elt ->
Unique
->
UniqFM
elt
delListFromUFM
::
Uniquable
key =>
UniqFM
elt -> [key] ->
UniqFM
elt
plusUFM
::
UniqFM
elt ->
UniqFM
elt ->
UniqFM
elt
plusUFM_C
:: (elt -> elt -> elt) ->
UniqFM
elt ->
UniqFM
elt ->
UniqFM
elt
minusUFM
::
UniqFM
elt1 ->
UniqFM
elt2 ->
UniqFM
elt1
intersectsUFM
::
UniqFM
elt1 ->
UniqFM
elt2 ->
Bool
intersectUFM
::
UniqFM
elt ->
UniqFM
elt ->
UniqFM
elt
intersectUFM_C
:: (elt1 -> elt2 -> elt3) ->
UniqFM
elt1 ->
UniqFM
elt2 ->
UniqFM
elt3
foldUFM
:: (elt -> a -> a) -> a ->
UniqFM
elt -> a
foldUFM_Directly
:: (
Unique
-> elt -> a -> a) -> a ->
UniqFM
elt -> a
mapUFM
:: (elt1 -> elt2) ->
UniqFM
elt1 ->
UniqFM
elt2
elemUFM
::
Uniquable
key => key ->
UniqFM
elt ->
Bool
elemUFM_Directly
::
Unique
->
UniqFM
elt ->
Bool
filterUFM
:: (elt ->
Bool
) ->
UniqFM
elt ->
UniqFM
elt
filterUFM_Directly
:: (
Unique
-> elt ->
Bool
) ->
UniqFM
elt ->
UniqFM
elt
sizeUFM
::
UniqFM
elt ->
Int
hashUFM
::
UniqFM
elt ->
Int
isNullUFM
::
UniqFM
elt ->
Bool
lookupUFM
::
Uniquable
key =>
UniqFM
elt -> key ->
Maybe
elt
lookupUFM_Directly
::
UniqFM
elt ->
Unique
->
Maybe
elt
lookupWithDefaultUFM
::
Uniquable
key =>
UniqFM
elt -> elt -> key -> elt
lookupWithDefaultUFM_Directly
::
UniqFM
elt -> elt ->
Unique
-> elt
eltsUFM
::
UniqFM
elt -> [elt]
keysUFM
::
UniqFM
elt -> [
Unique
]
splitUFM
::
Uniquable
key =>
UniqFM
elt -> key -> (
UniqFM
elt,
Maybe
elt,
UniqFM
elt)
ufmToList
::
UniqFM
elt -> [(
Unique
, elt)]
Unique-keyed mappings
data
UniqFM
ele
Source
UniqFM a
is a mapping from Unique to
a
. DO NOT use these constructors directly unless you live in this module!
Constructors
EmptyUFM
LeafUFM
!
FastInt
ele
NodeUFM
!
FastInt
!
FastInt
(
UniqFM
ele) (
UniqFM
ele)
Instances
Outputable
a =>
Outputable
(
UniqFM
a)
Manipulating those mappings
emptyUFM
::
UniqFM
elt
Source
unitUFM
::
Uniquable
key => key -> elt ->
UniqFM
elt
Source
unitDirectlyUFM
::
Unique
-> elt ->
UniqFM
elt
Source
listToUFM
::
Uniquable
key => [(key, elt)] ->
UniqFM
elt
Source
listToUFM_Directly
:: [(
Unique
, elt)] ->
UniqFM
elt
Source
listToUFM_C
::
Uniquable
key => (elt -> elt -> elt) -> [(key, elt)] ->
UniqFM
elt
Source
addToUFM
::
Uniquable
key =>
UniqFM
elt -> key -> elt ->
UniqFM
elt
Source
addToUFM_C
::
Uniquable
key => (elt -> elt -> elt) ->
UniqFM
elt -> key -> elt ->
UniqFM
elt
Source
addToUFM_Acc
::
Uniquable
key => (elt -> elts -> elts) -> (elt -> elts) ->
UniqFM
elts -> key -> elt ->
UniqFM
elts
Source
addListToUFM
::
Uniquable
key =>
UniqFM
elt -> [(key, elt)] ->
UniqFM
elt
Source
addListToUFM_C
::
Uniquable
key => (elt -> elt -> elt) ->
UniqFM
elt -> [(key, elt)] ->
UniqFM
elt
Source
addToUFM_Directly
::
UniqFM
elt ->
Unique
-> elt ->
UniqFM
elt
Source
addListToUFM_Directly
::
UniqFM
elt -> [(
Unique
, elt)] ->
UniqFM
elt
Source
delFromUFM
::
Uniquable
key =>
UniqFM
elt -> key ->
UniqFM
elt
Source
delFromUFM_Directly
::
UniqFM
elt ->
Unique
->
UniqFM
elt
Source
delListFromUFM
::
Uniquable
key =>
UniqFM
elt -> [key] ->
UniqFM
elt
Source
plusUFM
::
UniqFM
elt ->
UniqFM
elt ->
UniqFM
elt
Source
plusUFM_C
:: (elt -> elt -> elt) ->
UniqFM
elt ->
UniqFM
elt ->
UniqFM
elt
Source
minusUFM
::
UniqFM
elt1 ->
UniqFM
elt2 ->
UniqFM
elt1
Source
intersectsUFM
::
UniqFM
elt1 ->
UniqFM
elt2 ->
Bool
Source
intersectUFM
::
UniqFM
elt ->
UniqFM
elt ->
UniqFM
elt
Source
intersectUFM_C
:: (elt1 -> elt2 -> elt3) ->
UniqFM
elt1 ->
UniqFM
elt2 ->
UniqFM
elt3
Source
foldUFM
:: (elt -> a -> a) -> a ->
UniqFM
elt -> a
Source
foldUFM_Directly
:: (
Unique
-> elt -> a -> a) -> a ->
UniqFM
elt -> a
Source
mapUFM
:: (elt1 -> elt2) ->
UniqFM
elt1 ->
UniqFM
elt2
Source
elemUFM
::
Uniquable
key => key ->
UniqFM
elt ->
Bool
Source
elemUFM_Directly
::
Unique
->
UniqFM
elt ->
Bool
Source
filterUFM
:: (elt ->
Bool
) ->
UniqFM
elt ->
UniqFM
elt
Source
filterUFM_Directly
:: (
Unique
-> elt ->
Bool
) ->
UniqFM
elt ->
UniqFM
elt
Source
sizeUFM
::
UniqFM
elt ->
Int
Source
hashUFM
::
UniqFM
elt ->
Int
Source
isNullUFM
::
UniqFM
elt ->
Bool
Source
lookupUFM
::
Uniquable
key =>
UniqFM
elt -> key ->
Maybe
elt
Source
lookupUFM_Directly
::
UniqFM
elt ->
Unique
->
Maybe
elt
Source
lookupWithDefaultUFM
::
Uniquable
key =>
UniqFM
elt -> elt -> key -> elt
Source
lookupWithDefaultUFM_Directly
::
UniqFM
elt -> elt ->
Unique
-> elt
Source
eltsUFM
::
UniqFM
elt -> [elt]
Source
keysUFM
::
UniqFM
elt -> [
Unique
]
Source
splitUFM
::
Uniquable
key =>
UniqFM
elt -> key -> (
UniqFM
elt,
Maybe
elt,
UniqFM
elt)
Source
ufmToList
::
UniqFM
elt -> [(
Unique
, elt)]
Source
Produced by
Haddock
version 2.6.1