| Copyright | (c) 20082012 Antoine Latter |
|---|---|
| License | BSD-style |
| Maintainer | aslatter@gmail.com |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
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.
- Random UUIDs may be generated using
nextRandomor your favorite instance ofRandom. - We have an implementation of generating a UUID from the hardware MAC address and current system time in Data.UUID.V1.
- For name-based generation of UUIDs using SHA-1 hashing see Data.UUID.V5.
Documentation
fromString :: String -> Maybe UUID #
toASCIIBytes :: UUID -> ByteString #
fromASCIIBytes :: ByteString -> Maybe UUID #
toLazyASCIIBytes :: UUID -> ByteString #
fromLazyASCIIBytes :: ByteString -> Maybe UUID #
toByteString :: UUID -> ByteString #
fromByteString :: ByteString -> Maybe UUID #