on c31a697 help sign in
47 lines 1.3 kB history raw
1{- |
2Module : Data.UUID
3Copyright : (c) 2008,2012 Antoine Latter
5License : BSD-style
7Maintainer : aslatter@gmail.com
8Stability : experimental
9Portability : portable
12This library is useful for comparing, parsing and
13printing Universally Unique Identifiers.
14See <http://en.wikipedia.org/wiki/UUID> for the general idea.
15See <http://tools.ietf.org/html/rfc4122> for the specification.
17* Random UUIDs may be generated using 'Data.UUID.V4.nextRandom' or
18your favorite instance of 'System.Random.Random'.
20* We have an implementation of generating a UUID from the hardware
21MAC address and current system time in "Data.UUID.V1".
23* For name-based generation of UUIDs using SHA-1 hashing see
24"Data.UUID.V5".
25-}
27module Data.UUID(UUID
28 ,toString
29 ,fromString
30 ,toASCIIBytes
31 ,fromASCIIBytes
32 ,toLazyASCIIBytes
33 ,fromLazyASCIIBytes
34 ,toByteString
35 ,fromByteString
36 ,toWords
37 ,fromWords
38 ,null
39 ,nil
40 ) where
42import Prelude () -- we need to hide Prelude.null
43import Data.UUID.Internal
45-- Everything is really implemented in Data.UUID.Internal,
46-- but I don't want to export the constructors out of the
47-- package.