!z      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~Safe &'-2HUVX'6  dependent-mapA strict pair. dependent-mapDependent maps: k is a GADT-like thing with a facility for rediscovering its type parameter, elements of which function as identifiers tagged with the type of the thing they identify. Real GADTs are one useful instantiation of k , as are Tags from Data.Unique.Tag in the  'prim-uniq' package.Semantically,  k f is equivalent to a set of  k f* where no two elements have the same tag.More informally,  is to dependent products as  is to (->)i. Thus it could also be thought of as a partial (in the sense of "partial function") dependent product. dependent-mapO(1). The empty map. )empty == fromList [] size empty == 0 dependent-mapO(1). A map with a single element. Isingleton 1 'a' == fromList [(1, 'a')] size (singleton 1 'a') == 1 dependent-mapO(1). Is the map empty? dependent-mapO(1)$. The number of elements in the map. dependent-mapO(log n)'. Lookup the value at a key in the map.4The function will return the corresponding value as ( value), or  if the key isn't in the map. dependent-mapO(log n)&. Delete and find the minimal element. deleteFindMin (fromList [(5,"a"), (3,"b"), (10,"c")]) == ((3,"b"), fromList[(5,"a"), (10,"c")]) deleteFindMin Error: can not return the minimal element of an empty map dependent-map Convert a strict pair to a pair.  dependent-map$Convert a strict triple to a triple.! dependent-mapO(log n)d. Retrieves the minimal (key :=> value) entry of the map, and the map stripped of that element, or  if passed an empty map." dependent-mapO(log n)d. Retrieves the maximal (key :=> value) entry of the map, and the map stripped of that element, or  if passed an empty map.# dependent-mapO(log n)&. Delete and find the maximal element. deleteFindMax (fromList [(5,"a"), (3,"b"), (10,"c")]) == ((10,"c"), fromList [(3,"b"), (5,"a")]) deleteFindMax empty Error: can not return the maximal element of an empty map&  !"#$%&'()*+,-./01& !"#$%&'()*+,-./0111NoneF. dependent-mapChecks if two pointers are equal. Yes means yes; no means maybe. The values should be forced to at least WHNF before comparison to get moderately reliable results. dependent-mapChecks if two pointers are equal, without requiring them to have the same type. The values should be forced to at least WHNF before comparison to get moderately reliable results.44 Trustworthy&'->HSUVXkO2 dependent-mapO(log n)". Find the value at a key. Calls # when the element can not be found. gfromList [(5,'a'), (3,'b')] ! 1 Error: element not in the map fromList [(5,'a'), (3,'b')] ! 5 == 'a'3 dependent-mapSame as X.4 dependent-mapO(log n)+. Is the key a member of the map? See also 5.5 dependent-mapO(log n)/. Is the key not a member of the map? See also 4. dependent-mapO(log n)". Find the value at a key. Calls 4 when the element can not be found. Consider using " when elements may not be present.6 dependent-mapO(log n). The expression (6 def k map) returns the value at key k or returns default value def! when the key is not in the map.7 dependent-mapO(log n). Insert a new key and value in the map. If the key is already present in the map, the associated value is replaced with the supplied value. 7 is equivalent to 8 . dependent-mapO(log n)k. Insert a new key and value in the map if the key is not already present. If the key is already present, insertR does nothing.8 dependent-mapO(log n)>. Insert with a function, combining new value and old value. 8 f key value mp will insert the entry  key :=> value into mp_ if key does not exist in the map. If the key does exist, the function will insert the entry key :=> f new_value old_value.9 dependent-mapSame as 8], but the combining function is applied strictly. This is often the most desirable behavior.: dependent-mapO(log n)C. Insert with a function, combining key, new value and old value. : f key value mp will insert the entry  key :=> value into mp_ if key does not exist in the map. If the key does exist, the function will insert the entry !key :=> f key new_value old_value;. Note that the key passed to f is the same key passed to :.; dependent-mapSame as :1, but the combining function is applied strictly.< dependent-mapO(log n)G. Combines insert operation with old value retrieval. The expression (< f k x map2) is a pair where the first element is equal to ( k map$) and the second element equal to (: f k x map).= dependent-mapO(log n). A strict version of <.> dependent-mapO(log n)r. Delete a key and its value from the map. When the key is not a member of the map, the original map is returned.? dependent-mapO(log n). Update a value at a specific key with the result of the provided function. When the key is not a member of the map, the original map is returned.@ dependent-mapO(log n)k. Adjust a value at a specific key. When the key is not a member of the map, the original map is returned.A dependent-mapO(log n). A strict version of @.B dependent-mapO(log n). The expression (B f k map) updates the value x at k (if it is in the map). If (f x) is %, the element is deleted. If it is ( y ), the key k is bound to the new value y.C dependent-mapO(log n). The expression (C f k map) updates the value x at k (if it is in the map). If (f k x) is %, the element is deleted. If it is ( y ), the key k is bound to the new value y.D dependent-mapO(log n). Lookup and update. See also Cu. The function returns changed value, if it is updated. Returns the original key value if the map entry is deleted.E dependent-mapO(log n). The expression (E f k map) alters the value x at k, or absence thereof. E7 can be used to insert, delete, or update a value in a Map. In short :  k (E f k m) = f ( k m).F dependent-mapWorks the same as E( except the new value is return in some  f. In short : (v' -> alter (const v') k dm)  $ f (lookup k dm)G dependent-mapO(log n) . Return the index' of a key. The index is a number from 0 up to, but not including, the  of the map. Calls  when the key is not a 4 of the map.H dependent-mapO(log n) . Lookup the index' of a key. The index is a number from 0 up to, but not including, the  of the map.I dependent-mapO(log n). Retrieve an element by index. Calls  when an invalid index is used.J dependent-mapO(log n). Update the element at index.. Does nothing when an invalid index is used.K dependent-mapO(log n). Delete the element at index. Defined as (K i map = J (k x -> ) i map).L dependent-mapO(log n)$. The minimal key of the map. Calls  is the map is empty.N dependent-mapO(log n)$. The maximal key of the map. Calls  is the map is empty.P dependent-mapO(log n)C. Delete the minimal key. Returns an empty map if the map is empty.Q dependent-mapO(log n)C. Delete the maximal key. Returns an empty map if the map is empty.R dependent-mapO(log n)&. Update the value at the minimal key.S dependent-mapO(log n)&. Update the value at the maximal key.T dependent-map!The union of a list of maps: (T ==  V ).U dependent-map=The union of a list of maps, with a combining operation: (U f ==  (W f) ).V dependent-mapO(m*log(n/m + 1)), m <= n. The expression (V t1 t2!) takes the left-biased union of t1 and t2. It prefers t1- when duplicate keys are encountered, i.e. (V ==  unionWith ).W dependent-mapO(n+m)#. Union with a combining function.X dependent-mapO(m * log (n/m + 1)), m <= n[. Difference of two maps. Return elements of the first map not existing in the second map.Y dependent-mapO(n+m). Difference with a combining function. When two equal keys are encountered, the combining function is applied to the key and both values. If it returns D, the element is discarded (proper set difference). If it returns ( y+), the element is updated with a new value y.Z dependent-mapO(m * log (n/m + 1), m <= n`. Intersection of two maps. Return data in the first map for the keys existing in both maps. (Z m1 m2 == intersectionWith  m1 m2).[ dependent-mapO(m * log (n/m + 1), m <= n). Intersection with a combining function.\ dependent-mapO(n+m) . This function is defined as (\ = ] )).] dependent-mapO(n+m). The expression (] f t1 t2 ) returns  if all keys in t1 are in tree t2 , and when f returns 3 when applied to their respective keys and values.^ dependent-mapO(n+m)F. Is this a proper submap? (ie. a submap but not equal). Defined as (^ = _ )._ dependent-mapO(n+m)J. Is this a proper submap? (ie. a submap but not equal). The expression (_ f m1 m2 ) returns  when m1 and m2 are not equal, all keys in m1 are in m2 , and when f returns 3 when applied to their respective keys and values.` dependent-mapO(n)4. Filter all keys/values that satisfy the predicate.a dependent-mapO(n). Partition the map according to a predicate. The first map contains all elements that satisfy the predicate, the second all elements that fail the predicate. See also y.b dependent-mapO(n). Map values and collect the  results.c dependent-mapO(n)". Map keys/values and collect the  results.d dependent-mapO(n)#. Map keys/values and separate the  and  results.e dependent-mapO(n),. Map a function over all values in the map.f dependent-mapO(n),. Map a function over all values in the map.g dependent-mapO(n). g f m == q  $  ((k, v) -> (,) k  $ f k v) (s m)* That is, behaves exactly like a regular Y except that the traversing function also has access to the key associated with a value.h dependent-mapO(n). The function hO threads an accumulating argument throught the map in ascending order of keys.i dependent-mapO(n). The function iO threads an accumulating argument through the map in descending order of keys.j dependent-map O(n*log n). j c f s! is the map obtained by applying f to each key of s.)The size of the result may be smaller if fr maps two or more distinct keys to the same new key. In this case the associated values will be combined using c.k dependent-mapO(n). k f s == mapKeys f s, but works only when f2 is strictly monotonic. That is, for any values x and y, if x < y then f x < f y.  The precondition is not checked. Semi-formally, we have: ~and [x < y ==> f x < f y | x <- ls, y <- ls] ==> mapKeysMonotonic f s == mapKeys f s where ls = keys sThis means that fd maps distinct original keys to distinct resulting keys. This function has better performance than mapKeys.l dependent-mapO(n)2. Fold the keys and values in the map, such that l f z ==  ( f) z . t.This is identical to mb, and you should use that one instead of this one. This name is kept for backward compatibility.m dependent-mapO(n)W. Post-order fold. The function will be applied from the lowest value to the highest.n dependent-mapO(n)V. Pre-order fold. The function will be applied from the highest value to the lowest.o dependent-mapO(n)0. Return all keys of the map in ascending order. <keys (fromList [(5,"a"), (3,"b")]) == [3,5] keys empty == []p dependent-mapO(n)?. Return all key/value pairs in the map in ascending key order.q dependent-map O(n*log n)7. Build a map from a list of key/value pairs. See also vf. If the list contains more than one value for the same key, the last value for the key is retained.r dependent-map O(n*log n)Q. Build a map from a list of key/value pairs with a combining function. See also w.s dependent-mapO(n)'. Convert to a list of key/value pairs.t dependent-mapO(n). Convert to an ascending list.u dependent-mapO(n). Convert to a descending list.v dependent-mapO(n)6. Build a map from an ascending list in linear time. :The precondition (input list is ascending) is not checked.w dependent-mapO(n)`. Build a map from an ascending list in linear time with a combining function for equal keys. :The precondition (input list is ascending) is not checked.x dependent-mapO(n)K. Build a map from an ascending list of distinct elements in linear time.  The precondition is not checked.y dependent-mapO(log n). The expression (y k map ) is a pair  (map1,map2) where the keys in map1 are smaller than k and the keys in map2 larger than k. Any key equal to k is found in neither map1 nor map2.z dependent-mapO(log n). The expression (z k map) splits a map just like y but also returns  k map. dependent-mapO(log n). The expression ( k map) splits a map just like y but also returns 4 k map. dependent-mapO(log n).{ dependent-mapO(n)a. Show the tree that implements the map. The tree is shown in a compressed, hanging format. See |.| dependent-mapO(n). The expression (| showelem hang wide mapH) shows the tree that implements the map. Elements are shown using the showElem function. If hang is , a hanging6 tree is shown otherwise a rotated tree is shown. If wide is !, an extra wide version is shown.} dependent-mapO(n).. Test if the internal map structure is valid. dependent-mapExported only for Debug.QuickCheckb  !"#23456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}d 23456789:;<=>?@ABCDEFVWTUXYZ[efghijklmnopsqrtuvwx`abcdyz\]^_HGIJKLNMOPQ#RS!"{|}29 39 Safef dependent-map3These functions have been specialised for use with " but without any of the specific lensc types used so that we have compatilibity without needing the dependency just for these functions.This is equivalent to the  Nhttps://hackage.haskell.org/package/lens-4.16.1/docs/Control-Lens-At.html#v:atat  Vhttps://hackage.haskell.org/package/lens-4.16.1/docs/Control-Lens-Type.html#t:Lens-39-Lens' from  Ihttps://hackage.haskell.org/package/lens-4.16.1/docs/Control-Lens-At.htmlControl.Lens.At: ptype Lens s t a b = forall f. Functor f => (a -> f b) -> s -> f t at :: Index m -> Lens' m (Maybe (IxValue m)) So the type of  is equivalent to: 5dmat :: GCompare k => Lens' (DMap k f) (Maybe (f v)) UDMap.fromList [AInt :=> Identity 33, AFloat :=> Identity 3.5] & dmat AString ?~ "Hat"YDMap.fromList [AString :=> Identity "Hat", AInt :=> Identity 33, AFloat :=> Identity 3.5]iDMap.fromList [AString :=> Identity "Shoe", AInt :=> Identity 33, AFloat :=> Identity 3.5] ^? dmat AFloatJust (AFloat :=> 3.5) dependent-mapThis is equivalent to the  Nhttps://hackage.haskell.org/package/lens-4.16.1/docs/Control-Lens-At.html#v:ixix  [https://hackage.haskell.org/package/lens-4.16.1/docs/Control-Lens-Type.html#t:Traversal-39- Traversal' from  Ihttps://hackage.haskell.org/package/lens-4.16.1/docs/Control-Lens-At.htmlControl.Lens.At: vtype Traversal s t a b = forall f. Applicative f => (a -> f b) -> s -> f t ix :: Index m -> Traversal' m (IxValue m) So the type of  is equivalent to: 9dmix :: GCompare k => k v -> Traversal' (DMap k f) (f v) NB: Setting the value of this  Whttps://hackage.haskell.org/package/lens-4.16.1/docs/Control-Lens-Type.html#t:Traversal Traversal will only set the value in  if it is already present.!If you want to be able to insert missing values, you want .kDMap.fromList [AString :=> Identity "Shoe", AInt :=> Identity 33, AFloat :=> Identity 3.5] & dmix AInt %~ f^DMap.fromList [AString :=> Identity "Shoe", AInt :=> Identity (f 33), AFloat :=> Identity 3.5]rDMap.fromList [AString :=> Identity "Shoe", AInt :=> Identity 33, AFloat :=> Identity 3.5] & dmix AString .~ "Hat"YDMap.fromList [AString :=> Identity "Hat", AInt :=> Identity 33, AFloat :=> Identity 3.5]iDMap.fromList [AString :=> Identity "Shoe", AInt :=> Identity 33, AFloat :=> Identity 3.5] ^? dmix AFloatJust (AFloat :=> 3.5)QDMap.fromList [AString :=> Identity "Shoe", AFloat :=> Identity 3.5] ^? dmix AIntNothing            !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ (dependent-map-0.3-6eHqSx16QvP6gAuCaPTXJBData.Dependent.MapData.Dependent.Map.InternalData.Dependent.Map.LensMMapData.Dependent.Map.PtrEqualitybaseGHC.Listfilter*dependent-sum-0.6.1-647lxwSUMmD1Rj0oTM6XMK Data.SomeSomeThisData.Dependent.Sum:=>DSumData.GADT.CompareGGTGEQGLT GOrderinggcompareGCompareTriple':*:DMapTipBinempty singletonnullsizelookup lookupAssoccombine insertMax insertMinmergeglue deleteFindMintoPairtoTripleminViewWithKeymaxViewWithKey deleteFindMaxdeltaratiobalancerotateLrotateRsingleLsingleRdoubleLdoubleRbintrim trimLookupLofilterGtfilterLt!\\member notMemberfindWithDefaultinsert insertWith insertWith' insertWithKeyinsertWithKey'insertLookupWithKeyinsertLookupWithKey'deleteadjust adjustWithKeyadjustWithKey'update updateWithKeyupdateLookupWithKeyalteralterF findIndex lookupIndexelemAtupdateAtdeleteAtfindMin lookupMinfindMax lookupMax deleteMin deleteMaxupdateMinWithKeyupdateMaxWithKeyunions unionsWithKeyunion unionWithKey differencedifferenceWithKey intersectionintersectionWithKey isSubmapOf isSubmapOfByisProperSubmapOfisProperSubmapOfBy filterWithKeypartitionWithKeymapMaybemapMaybeWithKeymapEitherWithKeymap mapWithKeytraverseWithKeymapAccumLWithKeymapAccumRWithKey mapKeysWithmapKeysMonotonic foldWithKey foldrWithKey foldlWithKeykeysassocsfromListfromListWithKeytoList toAscList toDescList fromAscListfromAscListWithKeyfromDistinctAscListsplit splitLookupshowTree showTreeWithvalid $fShowDMap $fReadDMap $fOrdDMap$fEqDMap$fSemigroupDMap $fMonoidDMapdmatdmix GHC.MaybeJustNothingptrEqhetPtrEqGHC.ErrerrorfindGHC.BaseconstinsertRFunctor Data.FoldablefoldleqTaggedghc-prim GHC.TypesTrue Data.EitherLeftRightData.Traversabletraversefoldr Data.Tupleuncurry splitMembersplitLookupWithKeybalanced