mmzk-typeid: A TypeID implementation for Haskell
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 timestampEncode 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
- mmzk-typeid-0.1.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
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, 0.6.2.0, 0.6.3.0, 0.6.3.1, 0.7.0.0, 0.7.0.1, 0.7.0.2, 0.7.1.0, 0.7.1.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> |
| Uploaded | by MMZK1526 at 2023-07-11T08:17:28Z |
| Category | Data, UUID, TypeID |
| Home page | https://github.com/MMZK1526/mmzk-typeid |
| Bug tracker | https://github.com/MMZK1526/mmzk-typeid/issues |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 1189 total (44 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] |