on 3fd3cf5 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 ,toByteString
31 ,fromByteString
32 ,toWords
33 ,fromWords
34 ,null
35 ,nil
36 ,fromASCIIBytes
37 ,toASCIIBytes
38 ,fromLazyASCIIBytes
39 ,toLazyASCIIBytes
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.