uuid-orphans (empty) → 1.3.11
raw patch · 4 files changed
+76/−0 lines, 4 filesdep +basedep +safecopydep +textsetup-changed
Dependencies added: base, safecopy, text, uuid, web-routes
Files
- Data/UUID/Orphans.hs +14/−0
- LICENSE +28/−0
- Setup.hs +2/−0
- uuid-orphans.cabal +32/−0
+ Data/UUID/Orphans.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE TemplateHaskell #-}+module Data.UUID.Orphans () where++import Data.SafeCopy (base, deriveSafeCopy)+import Data.Text as T (pack, unpack)+import Data.UUID (UUID, toString, fromString)+import Web.Routes.PathInfo++$(deriveSafeCopy 0 'base ''UUID)++instance PathInfo UUID where+ toPathSegments = (:[]) . T.pack . toString+ fromPathSegments = pToken (const ("UUID" :: String)) checkUUID+ where checkUUID txt = fromString (T.unpack txt)
+ LICENSE view
@@ -0,0 +1,28 @@+Copyright (c) 2015, David Fox++All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions are+met:++ * Redistributions of source code must retain the above copyright+notice, this list of conditions and the following disclaimer.+ * Redistributions in binary form must reproduce the above copyright+notice, this list of conditions and the following disclaimer in the+documentation and/or other materials provided with the distribution.+ * The names of the authors may not be used to endorse or promote+products derived from this software without specific prior written+permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ uuid-orphans.cabal view
@@ -0,0 +1,32 @@+name: uuid-orphans+version: 1.3.11+cabal-version: >= 1.10+build-type: Simple+license: BSD3+license-file: LICENSE+category: Template Haskell+author: David Fox+copyright: (c) David Fox+maintainer: David Fox <dsf@seereason.com>+bug-reports: https://github.com/seereason/uuid-orphans+stability: experimental+tested-with: GHC == 7.10.2+synopsis: Orphan instances for the UUID datatype+description: Orphan instances for the UUID datatype. Currently , instances+ for SafeCopy and PathInfo are provided. The package version number+ is inherited from the current version of uuid.++library+ build-depends:+ base >= 4.2 && < 5,+ uuid >= 1.3.11,+ safecopy,+ text,+ web-routes+ ghc-options: -Wall+ exposed-modules: Data.UUID.Orphans+ default-language: Haskell2010++source-repository head+ type: git+ location: git://github.com/ddssff/uuid-orphans.git