| Portability | portable | 
|---|---|
| Stability | experimental | 
| Maintainer | aslatter@gmail.com | 
| Safe Haskell | Safe-Infered | 
Data.UUID
Description
This library is useful for comparing, parsing and printing Universally Unique Identifiers. See http://en.wikipedia.org/wiki/UUID for the general idea. See http://tools.ietf.org/html/rfc4122 for the specification.
Documentation
toString :: UUID -> StringSource
Convert a UUID into a hypenated string using lower-case letters. Example:
toString $ fromString "550e8400-e29b-41d4-a716-446655440000"
fromString :: String -> Maybe UUIDSource
toByteString :: UUID -> ByteStringSource
Encode a UUID into a ByteString in network order.
fromByteString :: ByteString -> Maybe UUIDSource
Extract a UUID from a ByteString in network byte order.
 The argument must be 16 bytes long, otherwise Nothing is returned.