<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>There is supposed to be some weak hash map implementation somewhere.</div><div><br></div><div>However, if you can't find it you can easily create it yourself. However, you will need to use the map in IO so I suggest that you use the hashtables[1] package in combination with the weak pointers mentioned by Erik.</div><div><br>- Alessandro</div><div><br></div><div>[1]: <span style="font-family: '.HelveticaNeueUI'; font-size: 15px; line-height: 19px; white-space: nowrap; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); -webkit-text-size-adjust: none; "><a href="http://hackage.haskell.org/package/hashtables">http://hackage.haskell.org/package/hashtables</a></span></div><div><br>On 10 aug. 2013, at 21:08, Erik Hesselink <<a href="mailto:hesselink@gmail.com">hesselink@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><span>I'm not sure, but there are weak pointer [0], though I have never used them.</span><br><span></span><br><span>Erik</span><br><span></span><br><span>[0] <a href="http://www.haskell.org/ghc/docs/latest/html/libraries/base/System-Mem-Weak.html">http://www.haskell.org/ghc/docs/latest/html/libraries/base/System-Mem-Weak.html</a></span><br><span></span><br><span>On Sat, Aug 10, 2013 at 7:13 PM, Aleksey Uymanov <<a href="mailto:s9gf4ult@gmail.com">s9gf4ult@gmail.com</a>> wrote:</span><br><blockquote type="cite"><span>Hello, haskellers.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Is there any package implementing magic hash tables weak in value? I</span><br></blockquote><blockquote type="cite"><span>mean when the value is garbage collected, then this key+value</span><br></blockquote><blockquote type="cite"><span>authomatically removes from the hash table.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>--</span><br></blockquote><blockquote type="cite"><span>Aleksey Uymanov <<a href="mailto:s9gf4ult@gmail.com">s9gf4ult@gmail.com</a>></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>_______________________________________________</span><br></blockquote><blockquote type="cite"><span>Haskell-Cafe mailing list</span><br></blockquote><blockquote type="cite"><span><a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a></span><br></blockquote><blockquote type="cite"><span><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a></span><br></blockquote><span></span><br><span>_______________________________________________</span><br><span>Haskell-Cafe mailing list</span><br><span><a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a></span><br><span><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a></span><br></div></blockquote></body></html>