uuid-1.3.13: For creating, comparing, parsing and printing Universally Unique Identifiers

Copyright(c) 20082012 Antoine Latter
LicenseBSD-style
Maintaineraslatter@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

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 nextRandom or your favorite instance of Random.
  • 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

data UUID #

Instances
Eq UUID 
Instance details

Defined in Data.UUID.Types.Internal

Methods

(==) :: UUID -> UUID -> Bool Source #

(/=) :: UUID -> UUID -> Bool Source #

Data UUID 
Instance details

Defined in Data.UUID.Types.Internal

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UUID -> c UUID Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UUID Source #

toConstr :: UUID -> Constr Source #

dataTypeOf :: UUID -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UUID) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UUID) Source #

gmapT :: (forall b. Data b => b -> b) -> UUID -> UUID Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UUID -> r Source #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UUID -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> UUID -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UUID -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UUID -> m UUID Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UUID -> m UUID Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UUID -> m UUID Source #

Ord UUID 
Instance details

Defined in Data.UUID.Types.Internal

Read UUID 
Instance details

Defined in Data.UUID.Types.Internal

Show UUID 
Instance details

Defined in Data.UUID.Types.Internal

Storable UUID 
Instance details

Defined in Data.UUID.Types.Internal

Binary UUID 
Instance details

Defined in Data.UUID.Types.Internal

NFData UUID 
Instance details

Defined in Data.UUID.Types.Internal

Methods

rnf :: UUID -> () Source #

Random UUID 
Instance details

Defined in Data.UUID.Types.Internal

Methods

randomR :: RandomGen g => (UUID, UUID) -> g -> (UUID, g) Source #

random :: RandomGen g => g -> (UUID, g) Source #

randomRs :: RandomGen g => (UUID, UUID) -> g -> [UUID] Source #

randoms :: RandomGen g => g -> [UUID] Source #

randomRIO :: (UUID, UUID) -> IO UUID Source #

randomIO :: IO UUID Source #

Hashable UUID 
Instance details

Defined in Data.UUID.Types.Internal

Methods

hashWithSalt :: Int -> UUID -> Int

hash :: UUID -> Int

null :: UUID -> Bool #