Data.Map documentation lacks a bit of precision

Ketil Malde ketil+haskell at
Tue Apr 5 00:54:10 EDT 2005

"Jesper Louis Andersen" <jlouis at> writes:

> And gain the explicit behaviour. I do not currently have a GHC 6.4
> installed here, so I cannot test this behaviour, but some code I am working
> on needs to be fairly compatible. 

FWIW, Data.Map.insert seems to overwrite old values with the same key,
just like addToFM used to:

    Data.Map> let x = insert 1 "foo" empty
    Data.Map> x
    Data.Map> let x' = insert 1 "bar" x
    Data.Map> x'

If I haven't seen further, it is by standing in the footprints of giants

More information about the Libraries mailing list