cqrs-types-0.9.0: Command-Query Responsibility Segregation. Modules for the basic types.

Safe HaskellNone

Data.CQRS.GUID

Description

Globally Unique IDentifiers.

Synopsis

Documentation

data GUID Source

A Globally Unique IDentifier.

Instances

Eq GUID 
Data GUID 
Ord GUID 
Show GUID

Showing a GUID.

Typeable GUID 
NFData GUID 
Serializable GUID

Serialize instance.

fromByteString :: ByteString -> GUIDSource

Convert from ByteString.

base64Decode :: ByteString -> Maybe GUIDSource

Decode a GUID from base64 representation.

base64Encode :: GUID -> ByteStringSource

Base64 encode a GUID.

hexDecode :: ByteString -> Maybe GUIDSource

Decode a GUID from hex representation.

hexEncode :: GUID -> ByteStringSource

Hex encode a GUID.

newGUID :: IO GUIDSource

Create a new random GUID.

toByteString :: GUID -> ByteStringSource

Convert to ByteString.