Import hs-hashmap-1.2.0.1 as wip/hs-hashmap.
An implementation of persistent Map and Set containers based on hashing. The implementation is build on top of Data.IntMap.IntMap and Data.IntSet.IntSet, with very similar API. It uses Hashable class from the hashable package for hashing. This package can be used as a drop-in replacement for Data.Map and Data.Set modules. The Map key value is an Data.IntMap.IntMap indexed by the hash value, containing either one (key, value) or a Data.Map.Map key value for all keys with the same hash value. The Set elem is an Data.IntMap.IntMap indexed by the hash value, containing either one elem or Data.Set.Set elem for all elements with the same hash value.
This commit is contained in:
parent
c7b47bbeb3
commit
b86642fdca
5 changed files with 57 additions and 0 deletions
15
hs-hashmap/DESCR
Normal file
15
hs-hashmap/DESCR
Normal file
|
@ -0,0 +1,15 @@
|
|||
An implementation of persistent Map and Set containers based on
|
||||
hashing. The implementation is build on top of Data.IntMap.IntMap and
|
||||
Data.IntSet.IntSet, with very similar API. It uses Hashable class from
|
||||
the hashable package for hashing.
|
||||
|
||||
This package can be used as a drop-in replacement for Data.Map and
|
||||
Data.Set modules.
|
||||
|
||||
The Map key value is an Data.IntMap.IntMap indexed by the hash value,
|
||||
containing either one (key, value) or a Data.Map.Map key value for all
|
||||
keys with the same hash value.
|
||||
|
||||
The Set elem is an Data.IntMap.IntMap indexed by the hash value,
|
||||
containing either one elem or Data.Set.Set elem for all elements with
|
||||
the same hash value.
|
13
hs-hashmap/Makefile
Normal file
13
hs-hashmap/Makefile
Normal file
|
@ -0,0 +1,13 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2011/11/14 09:27:45 phonohawk Exp $
|
||||
#
|
||||
|
||||
DISTNAME= hashmap-1.2.0.1
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= pho@cielonegro.org
|
||||
COMMENT= Persistent containers Map and Set based on hashing
|
||||
LICENSE= modified-bsd
|
||||
|
||||
.include "../../wip/mk/haskell.mk"
|
||||
.include "../../wip/hs-hashable/buildlink3.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
10
hs-hashmap/PLIST
Normal file
10
hs-hashmap/PLIST
Normal file
|
@ -0,0 +1,10 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2011/11/14 09:27:45 phonohawk Exp $
|
||||
lib/hashmap-${PKGVERSION}/${HASKELL_VERSION}/Data/HashMap.hi
|
||||
lib/hashmap-${PKGVERSION}/${HASKELL_VERSION}/Data/HashMap.p_hi
|
||||
lib/hashmap-${PKGVERSION}/${HASKELL_VERSION}/Data/HashSet.hi
|
||||
lib/hashmap-${PKGVERSION}/${HASKELL_VERSION}/Data/HashSet.p_hi
|
||||
lib/hashmap-${PKGVERSION}/${HASKELL_VERSION}/HShashmap-${PKGVERSION}.o
|
||||
lib/hashmap-${PKGVERSION}/${HASKELL_VERSION}/libHShashmap-${PKGVERSION}.a
|
||||
lib/hashmap-${PKGVERSION}/${HASKELL_VERSION}/libHShashmap-${PKGVERSION}_p.a
|
||||
lib/hashmap-${PKGVERSION}/${HASKELL_VERSION}/package-description
|
||||
share/doc/hashmap-${PKGVERSION}/LICENSE
|
14
hs-hashmap/buildlink3.mk
Normal file
14
hs-hashmap/buildlink3.mk
Normal file
|
@ -0,0 +1,14 @@
|
|||
# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/11/14 09:27:45 phonohawk Exp $
|
||||
|
||||
BUILDLINK_TREE+= hs-hashmap
|
||||
|
||||
.if !defined(HS_HASHMAP_BUILDLINK3_MK)
|
||||
HS_HASHMAP_BUILDLINK3_MK:=
|
||||
|
||||
BUILDLINK_API_DEPENDS.hs-hashmap+= hs-hashmap>=1.2.0
|
||||
BUILDLINK_PKGSRCDIR.hs-hashmap?= ../../wip/hs-hashmap
|
||||
|
||||
.include "../../wip/hs-hashable/buildlink3.mk"
|
||||
.endif # HS_HASHMAP_BUILDLINK3_MK
|
||||
|
||||
BUILDLINK_TREE+= -hs-hashmap
|
5
hs-hashmap/distinfo
Normal file
5
hs-hashmap/distinfo
Normal file
|
@ -0,0 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.1.1.1 2011/11/14 09:27:45 phonohawk Exp $
|
||||
|
||||
SHA1 (hashmap-1.2.0.1.tar.gz) = 76c6e976f86ed8f2e6a8c49129f77dff4e43628b
|
||||
RMD160 (hashmap-1.2.0.1.tar.gz) = ae826ac9272964f7214387d7df58ab9fd0cf4711
|
||||
Size (hashmap-1.2.0.1.tar.gz) = 10375 bytes
|
Loading…
Reference in a new issue