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
UUID
v7 timestampEncode prefixes at type-level for better type-safety
Please enable the following extensions if working with KindID
:
{-# LANGUAGE DataKinds #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE TypeApplications #-} {-# LANGUAGE TypeFamilies #-}
While the following is not required, it is quite convenient to have
{-# LANGUAGE OverloadedStrings #-}
For a quick "how-to-use" guide, please refer to the README.md file at https://github.com/MMZK1526/mmzk-typeid#readme.
Modules
[Index] [Quick Jump]
Downloads
- mmzk-typeid-0.2.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 |
---|---|
Change log | CHANGELOG.md |
Dependencies | aeson (>=2.1 && <3), array (>=0.5 && <0.6), base (>=4.16 && <5), binary (>=0.8.5 && <0.9), bytestring (>=0.11 && <0.12), entropy (>=0.4 && <0.5), text (>=2.0 && <2.1), time (>=1.11 && <1.13), 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-14T17:05:07Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 762 total (5 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] |