on master help sign in
cleaned up .cabal, tweaked documentation
d7f3dccaslatter
Data/UUID.hs+3−3
@@ -100,7 +100,7 @@ fromString s = unsafePerformIO $ do
100 0 -> return . Just $ U fp
100 0 -> return . Just $ U fp
101 _ -> return Nothing
101 _ -> return Nothing
102
102
103−-- |Returns a 'String' representation of the passed in UUID.
103+-- |Returns a 'String' representation of the passed in 'UUID'.
104-- Hex digits occuring in the output will be either upper or
104-- Hex digits occuring in the output will be either upper or
105-- lower-case depending on system defaults and locale.
105-- lower-case depending on system defaults and locale.
106toString :: UUID -> String
106toString :: UUID -> String
@@ -111,7 +111,7 @@ toString (U fp) = unsafePerformIO $ do
111 free chars
111 free chars
112 return st
112 return st
113
113
114−-- |Returns a 'String' representation of the passed in UUID.
114+-- |Returns a 'String' representation of the passed in 'UUID'.
115-- Hex digits occuring in the output will be lower-case.
115-- Hex digits occuring in the output will be lower-case.
116toStringLower :: UUID -> String
116toStringLower :: UUID -> String
117toStringLower (U fp) = unsafePerformIO $ do
117toStringLower (U fp) = unsafePerformIO $ do
@@ -121,7 +121,7 @@ toStringLower (U fp) = unsafePerformIO $ do
121 free chars
121 free chars
122 return st
122 return st
123
123
124−-- |Returns a 'String' representation of the passed in UUID.
124+-- |Returns a 'String' representation of the passed in 'UUID'.
125-- Hex digits occuring in the output will be upper-case.
125-- Hex digits occuring in the output will be upper-case.
126toStringUpper :: UUID -> String
126toStringUpper :: UUID -> String
127toStringUpper (U fp) = unsafePerformIO $ do
127toStringUpper (U fp) = unsafePerformIO $ do
LICENSEnew file+28
@@ -0,0 +1,28 @@
1+Copyright (c) 2008, Antoine Latter
2+
3+All rights reserved.
4+
5+Redistribution and use in source and binary forms, with or without
6+modification, are permitted provided that the following conditions are
7+met:
8+
9+ * Redistributions of source code must retain the above copyright
10+notice, this list of conditions and the following disclaimer.
11+ * Redistributions in binary form must reproduce the above copyright
12+notice, this list of conditions and the following disclaimer in the
13+documentation and/or other materials provided with the distribution.
14+ * The names of the authors may not be used to endorse or promote
15+products derived from this software without specific prior written
16+permission.
17+
18+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
24+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
uuid.cabal+14−2
@@ -1,11 +1,23 @@
1Name: uuid
1Name: uuid
2−Version: 0.0.0
2+Version: 0.1.0
3Copyright: 2008, Antoine Latter
3Copyright: 2008, Antoine Latter
4Author: Antoine Latter
4Author: Antoine Latter
5Maintainer: aslatter@gmail.com
5Maintainer: aslatter@gmail.com
6+License: BSD3
7+License-file: LICENSE
6
8
7Category: Data
9Category: Data
8Build-Type: Simple
10Build-Type: Simple
11+Cabal-Version: >= 1.2
12+
13+Description:
14+ Haskell bindings to libuuid.
15+ The library libuuid is available as a part of e2fsprogs:
16+ <http://e2fsprogs.sourceforge.net/>.
17+
18+ This library is useful for creating, comparing, parsing and
19+ printing Universally Unique Identifiers.
20+ See <http://en.wikipedia.org/wiki/UUID> for the general idea.
9
21
10Library
22Library
11 Build-Depends: base
23 Build-Depends: base
@@ -16,7 +28,7 @@ Library
16
28
17 Extensions: ForeignFunctionInterface
29 Extensions: ForeignFunctionInterface
18
30
19− extra-libraries: uuid
31+ Extra-Libraries: uuid
20
32
21
33
22
34