BSD Ports

devel/hs-hashable 1.5.0.0nb3 NetBSD

Class for types that can be converted to a hash value

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
modified-bsd
Categories
devel
Package size
291.8 KiB, 3702.6 KiB installed

Description

This package defines a class, Hashable, for types that can be converted to a hash value. This class exists for the benefit of hashing-based data structures. The package provides instances for basic types and a way to combine hash values.

Hashable is intended exclusively for use in in-memory data structures.

Hashable does not have a fixed standard. This allows it to improve over time.

Because it does not have a fixed standard, different computers or computers on different versions of the code will observe different hash values. As such, hashable is not recommended for use other than in-memory datastructures. Specifically, hashable is not intended for network use or in applications which persist hashed values. For stable hashing use named hashes: sha256, crc32, xxhash etc.

Install

Binary package:

pkgin install hs-hashable

From pkgsrc:

cd /usr/pkgsrc/devel/hs-hashable && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.5.0.0nb3
NetBSD 10.1 aarch641.5.0.0nb3
SmartOS / illumos x86_641.5.0.0nb3
macOS 15 arm641.5.0.0nb3

Dependencies

Run dependencies 1