on master help sign in
Add version info to function haddocks
commitadde737b3fb0c4fec568b7b7244b766e56b91a3c authorAntoine Latter <aslatter@gmail.com> dateThu 14 Jun 2012, 02:41 (14 years ago) parent36bcbf8
2 files changed+6−2
Data/UUID/Internal.hs+5−2 Data/UUID/V4.hs+1
Data/UUID/Internal.hs+5−2
@@ -77,12 +77,15 @@ data UUID
7777
7878-- | Covert a 'UUID' into a sequence of 'Word32' values.
7979-- 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.
8182toWords :: UUID -> (Word32, Word32, Word32, Word32)
8283toWords (UUID w1 w2 w3 w4) = (w1, w2, w3, w4)
8384
8485-- | 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.
8689fromWords :: Word32 -> Word32 -> Word32 -> Word32 -> UUID
8790fromWords = UUID
8891
Data/UUID/V4.hs+1
@@ -23,6 +23,7 @@ module Data.UUID.V4 (nextRandom) where
2323import Data.UUID
2424import qualified System.Random as R
2525
26+-- | Generate a random UUID. Introduced in version 1.2.6.
2627nextRandom :: IO UUID
2728nextRandom = R.randomIO
2829