_______________________________________________There is supposed to be some weak hash map implementation somewhere.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.
- AlessandroI'm not sure, but there are weak pointer [0], though I have never used them.
Erik
[0] http://www.haskell.org/ghc/docs/latest/html/libraries/base/System-Mem-Weak.html
On Sat, Aug 10, 2013 at 7:13 PM, Aleksey Uymanov <s9gf4ult@gmail.com> wrote:Hello, haskellers.Is there any package implementing magic hash tables weak in value? Imean when the value is garbage collected, then this key+valueauthomatically removes from the hash table.--Aleksey Uymanov <s9gf4ult@gmail.com>_______________________________________________Haskell-Cafe mailing listHaskell-Cafe@haskell.orghttp://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe