on master help sign in
cleaned up .cabal, tweaked documentation
commitd7f3dcc4b93edcb0e1872d402b2a6b05ec785110 authoraslatter <aslatter@gmail.com> dateSun 23 Mar 2008, 06:14 (19 years ago) parent0f43822
3 files changed+45−5
Data/UUID.hs+3−3 LICENSE+28 uuid.cabal+14−2
Data/UUID.hs+3−3
@@ -100,7 +100,7 @@ fromString s = unsafePerformIO $ do
100100 0 -> return . Just $ U fp
101101 _ -> return Nothing
102102
103−-- |Returns a 'String' representation of the passed in UUID.
103+-- |Returns a 'String' representation of the passed in 'UUID'.
104104-- Hex digits occuring in the output will be either upper or
105105-- lower-case depending on system defaults and locale.
106106toString :: UUID -> String
@@ -111,7 +111,7 @@ toString (U fp) = unsafePerformIO $ do
111111 free chars
112112 return st
113113
114−-- |Returns a 'String' representation of the passed in UUID.
114+-- |Returns a 'String' representation of the passed in 'UUID'.
115115-- Hex digits occuring in the output will be lower-case.
116116toStringLower :: UUID -> String
117117toStringLower (U fp) = unsafePerformIO $ do
@@ -121,7 +121,7 @@ toStringLower (U fp) = unsafePerformIO $ do
121121 free chars
122122 return st
123123
124−-- |Returns a 'String' representation of the passed in UUID.
124+-- |Returns a 'String' representation of the passed in 'UUID'.
125125-- Hex digits occuring in the output will be upper-case.
126126toStringUpper :: UUID -> String
127127toStringUpper (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 @@
11Name: uuid
2−Version: 0.0.0
2+Version: 0.1.0
33Copyright: 2008, Antoine Latter
44Author: Antoine Latter
55Maintainer: aslatter@gmail.com
6+License: BSD3
7+License-file: LICENSE
68
79Category: Data
810Build-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.
921
1022Library
1123 Build-Depends: base
@@ -16,7 +28,7 @@ Library
1628
1729 Extensions: ForeignFunctionInterface
1830
19− extra-libraries: uuid
31+ Extra-Libraries: uuid
2032
2133
2234