git.iko.soy/typeable/http-api-data
on master help sign in
Merge pull request #2 from sol/master
c01064dMichael Snoyman
path-pieces.cabal+3−4
@@ -9,7 +9,6 @@ category: Web, Yesod
9stability: unstable
9stability: unstable
10cabal-version: >= 1.8
10cabal-version: >= 1.8
11build-type: Simple
11build-type: Simple
12−homepage: http://github.com/snoyberg/path-pieces
13extra-source-files:
12extra-source-files:
14 test/main.hs
13 test/main.hs
15
14
@@ -26,13 +25,13 @@ test-suite test
26 hs-source-dirs: test
25 hs-source-dirs: test
27 ghc-options: -Wall
26 ghc-options: -Wall
28 build-depends: HUnit
27 build-depends: HUnit
29− , hspec >= 0.8 && < 0.10
28+ , hspec >= 1.3
30 , file-location >= 0.4 && < 0.5
29 , file-location >= 0.4 && < 0.5
31 , base >= 4 && < 5
30 , base >= 4 && < 5
32− , QuickCheck == 2.4.*
31+ , QuickCheck
33 , path-pieces
32 , path-pieces
34 , text
33 , text
35
34
36source-repository head
35source-repository head
37 type: git
36 type: git
38− location: git://github.com/snoyberg/path-pieces.git
37+ location: https://github.com/yesodweb/path-pieces
test/main.hs+4−5
@@ -2,8 +2,7 @@
2{-# OPTIONS_GHC -fno-warn-orphans #-}
2{-# OPTIONS_GHC -fno-warn-orphans #-}
3module Main where
3module Main where
4
4
5−import Test.Hspec.Monadic (Specs, describe, hspecX)
5+import Test.Hspec
6−import Test.Hspec.HUnit()
7import Test.Hspec.QuickCheck(prop)
6import Test.Hspec.QuickCheck(prop)
8import Test.QuickCheck
7import Test.QuickCheck
9
8
@@ -18,10 +17,10 @@ instance Arbitrary T.Text where
18
17
19
18
20main :: IO ()
19main :: IO ()
21−main = hspecX specs
20+main = hspec spec
22
21
23−specs :: Specs
22+spec :: Spec
24−specs = do
23+spec = do
25 describe "PathPiece" $ do
24 describe "PathPiece" $ do
26 prop "toPathPiece <=> fromPathPiece String" $ \(p::String) ->
25 prop "toPathPiece <=> fromPathPiece String" $ \(p::String) ->
27 case (fromPathPiece . toPathPiece) p of
26 case (fromPathPiece . toPathPiece) p of