[darcs-devel] Re: darcs patch: add hash function to FastPackedString (and 1 more)

Benedikt Schmidt ry102 at rz.uni-karlsruhe.de
Tue Apr 5 10:05:09 PDT 2005


David Roundy <droundy at abridgegame.org> writes:

> On Tue, Apr 05, 2005 at 08:25:10AM -0400, Benedikt Schmidt wrote:
>> Mon Apr  4 13:08:50 CEST 2005  Benedikt Schmidt <beschmi at cloaked.de>
>>   * add hash function to FastPackedString
>> 
>> Tue Apr  5 14:31:55 CEST 2005  Benedikt Schmidt <beschmi at cloaked.de>
>>   * replace Hunt/Szymanski diff algorithm with one by Myers
>
>> +import qualified Data.Map as Map ( lookup, empty, insertWith )
>
> It seems that Data.Map isn't available with ghc 6.2? Or perhaps did it need
> a -package flag in order to be included?

I didn't think about it, there is FiniteMap in ghc 6.2 but the interface is not
compatible. There is a shim module in Yi we could use that implements the Data.Map
interface with Data.FiniteMap.

http://www.scannedinavian.org/cgi-bin/darcs.cgi/yi/Yi/Map.hs?c=annotate
 
Benedikt





More information about the darcs-devel mailing list