cqrs-0.2.0: Command-Query Responsibility Segregation

Data.CQRS.GUID

Description

Globally Unique IDentifiers.

Synopsis

Documentation

data GUID a Source

A GUID for values of type a.

Instances

Typeable1 GUID 
Eq (GUID a) 
Show (GUID a) 
ToSQLData (GUID a) 

fromByteString :: ByteString -> GUID aSource

Convert ByteString to GUID.

newGUID :: IO (GUID a)Source

Create a new random GUID. TODO: We should perhaps be using a cryptographically secury random generator for this.

nil :: GUID aSource

The nil GUID. This is used for the root aggregate root which all other aggregate roots can be reached from.

toByteString :: GUID a -> ByteStringSource

Convert GUID to ByteString.