on master help sign in
Add version info to function haddocks
adde737Antoine Latter
Data/UUID/Internal.hs+5−2
@@ -77,12 +77,15 @@ data UUID
77
77
78-- | Covert a 'UUID' into a sequence of 'Word32' values.
78-- | Covert a 'UUID' into a sequence of 'Word32' values.
79-- Usefull for when you need to serialize a UUID and
79-- Usefull for when you need to serialize a UUID and
80−-- neither 'Storable' nor 'Binary' are appropriate.
80+-- neither 'Storable' nor 'Binary' are appropriate.
81+-- Introduced in version 1.2.2.
81toWords :: UUID -> (Word32, Word32, Word32, Word32)
82toWords :: UUID -> (Word32, Word32, Word32, Word32)
82toWords (UUID w1 w2 w3 w4) = (w1, w2, w3, w4)
83toWords (UUID w1 w2 w3 w4) = (w1, w2, w3, w4)
83
84
84-- | Create a 'UUID' from a sequence of 'Word32'. The
85-- | Create a 'UUID' from a sequence of 'Word32'. The
85−-- opposite of 'toWords'.
86+-- opposite of 'toWords'. Useful when you need a total
87+-- function for constructing 'UUID' values.
88+-- Introduced in version 1.2.2.
86fromWords :: Word32 -> Word32 -> Word32 -> Word32 -> UUID
89fromWords :: Word32 -> Word32 -> Word32 -> Word32 -> UUID
87fromWords = UUID
90fromWords = UUID
88
91
Data/UUID/V4.hs+1
@@ -23,6 +23,7 @@ module Data.UUID.V4 (nextRandom) where
23import Data.UUID
23import Data.UUID
24import qualified System.Random as R
24import qualified System.Random as R
25
25
26+-- | Generate a random UUID. Introduced in version 1.2.6.
26nextRandom :: IO UUID
27nextRandom :: IO UUID
27nextRandom = R.randomIO
28nextRandom = R.randomIO
28
29