@hackage mmzk-typeid0.1.0.0

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 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.