Safe Haskell | None |
---|
A UID
is a unique identifier, generated from Data.UUID.V4.
These identifiers are designed for easy presentation as Base32, using Codec.Binary.Base32, and for transport in a JSON format using Data.Aeson.
The primary constructor, newUID
, runs in the IO
monad, primarily because of its
use of a random number generator during construction. If all you need is a unique string,
then newUIDString
is just a wrapper that creates a new UID and then invokes toBase32
on it.
Documentation
A new, randomly generated identifier
newUIDString :: IO StringSource
Construct a new identifier and immediately convert to its base32 representation using toBase32
fromBase32 :: String -> UIDSource