mmzk-typeid: A TypeID implementation for Haskell

[ data, library, mit, typeid, uuid ] [ Propose Tags ]

TypeID is a type-safe, K-sortable, globally unique identifier inspired by Stripe IDs.

The specification is available at https://github.com/jetpack-io/typeid.

This library supports generating and parsing speç-conforming TypeIDs, with the following additional features:

  • Batch generating TypeIDs with the same UUIDv7 timestamp

  • Encode prefixes at type-level for better type-safety

The following extensions are recommended when using this library:

{-# LANGUAGE BlockArguments #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE InstanceSigs #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeApplications #-}

For a quick "how-to-use" guide, please refer to the README.md file at https://github.com/MMZK1526/mmzk-typeid#readme.

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.3.0.1, 0.3.1.0, 0.4.0.0, 0.4.0.1, 0.5.0.0, 0.5.0.1, 0.5.0.2, 0.6.0.0, 0.6.0.1
Change log CHANGELOG.md
Dependencies aeson (>=2.1 && <2.2), array (>=0.5 && <0.6), base (>=4.16 && <5), binary (>=0.8.9 && <0.9), bytestring (>=0.11 && <0.12), entropy (>=0.4 && <0.5), text (>=2.0 && <2.1), time (>=1.11 && <1.12), transformers (>=0.6 && <0.7) [details]
License MIT
Author Yitang Chen <mmzk1526@ic.ac.uk>
Maintainer Yitang Chen <mmzk1526@ic.ac.uk>
Category Data, UUID, TypeID
Home page https://github.com/MMZK1526/mmzk-typeid
Bug tracker https://github.com/MMZK1526/mmzk-typeid/issues
Uploaded by MMZK1526 at 2023-07-11T08:17:28Z
Distributions
Downloads 281 total (49 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]