packages feed

genvalidity-path (empty) → 0.1.0.0

raw patch · 6 files changed

+119/−0 lines, 6 filesdep +basedep +genvaliditydep +genvalidity-hspecsetup-changed

Dependencies added: base, genvalidity, genvalidity-hspec, genvalidity-path, hspec, path, validity-path

Files

+ LICENSE view
@@ -0,0 +1,21 @@+The MIT License (MIT)++Copyright (c) 2016 Tom Sydney Kerckhove++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ genvalidity-path.cabal view
@@ -0,0 +1,48 @@+name:                genvalidity-path+version:             0.1.0.0+synopsis:            GenValidity support for Path+description:         Please see README.md+homepage:            https://github.com/NorfairKing/validity#readme+license:             MIT+license-file:        LICENSE+author:              Tom Sydney Kerckhove+maintainer:          syd.kerckhove@gmail.com+copyright:           Copyright: (c) 2016 Tom Sydney Kerckhove+category:            Testing+build-type:          Simple+cabal-version:       >=1.10++library+  hs-source-dirs:      src+  exposed-modules:     Data.GenValidity.Path+  build-depends:       base       < 5+                     , validity-path >= 0.1 && < 0.2+                     , genvalidity >= 0.3 && < 0.4+                     , path >= 0.5 && < 0.6+  default-language:    Haskell2010++test-suite genvalidity-path-test+  type:+    exitcode-stdio-1.0+  default-language:+    Haskell2010+  hs-source-dirs:+    test+  main-is:+    Spec.hs+  other-modules:+    Data.GenValidity.PathSpec+  ghc-options:+    -threaded -rtsopts -with-rtsopts=-N+    -Wall+    -fno-warn-name-shadowing+  build-depends:+      base+    , genvalidity-path+    , hspec+    , genvalidity-hspec+    , path++source-repository head+  type:     git+  location: https://github.com/NorfairKing/validity
+ src/Data/GenValidity/Path.hs view
@@ -0,0 +1,28 @@+{-# LANGUAGE FlexibleInstances #-}++module Data.GenValidity.Path where++import Data.GenValidity+import Data.Validity.Path ()++import Path+import Path.Internal++instance GenUnchecked (Path a f) where+    genUnchecked = Path <$> genUnchecked++instance GenValid (Path Abs File)++instance GenValid (Path Abs Dir)++instance GenValid (Path Rel File)++instance GenValid (Path Rel Dir)++instance GenInvalid (Path Abs File)++instance GenInvalid (Path Abs Dir)++instance GenInvalid (Path Rel File)++instance GenInvalid (Path Rel Dir)
+ test/Data/GenValidity/PathSpec.hs view
@@ -0,0 +1,19 @@+{-# LANGUAGE TypeApplications #-}++module Data.GenValidity.PathSpec+    ( spec+    ) where++import Path++import Test.Hspec+import Test.Validity++import Data.GenValidity.Path ()++spec :: Spec+spec = do+    genValiditySpec @(Path Abs File)+    genValiditySpec @(Path Abs Dir)+    genValiditySpec @(Path Rel File)+    genValiditySpec @(Path Rel Dir)
+ test/Spec.hs view
@@ -0,0 +1,1 @@+{-# OPTIONS_GHC -F -pgmF hspec-discover #-}