[Pkg-haskell-commits] darcs: haskell-persistent-template: New upstream version 0.8.1.1.
Clint Adams
clint at debian.org
Wed Feb 29 16:35:02 UTC 2012
Wed Feb 29 16:34:13 UTC 2012 Clint Adams <clint at debian.org>
* New upstream version 0.8.1.1.
Ignore-this: e54bea1fcc454dbb22203beb83597a8b
M ./changelog +8
M ./control -3 +9
A ./patches/
A ./patches/series
A ./patches/testsuite-fix.diff
A ./patches/testsuite.diff
M ./rules +2
Wed Feb 29 16:34:13 UTC 2012 Clint Adams <clint at debian.org>
* New upstream version 0.8.1.1.
Ignore-this: e54bea1fcc454dbb22203beb83597a8b
diff -rN -u old-haskell-persistent-template//changelog new-haskell-persistent-template//changelog
--- old-haskell-persistent-template//changelog 2012-02-29 16:35:01.935278356 +0000
+++ new-haskell-persistent-template//changelog 2012-02-29 16:35:01.935278356 +0000
@@ -1,3 +1,11 @@
+haskell-persistent-template (0.8.1.1-1) unstable; urgency=low
+
+ * New upstream version.
+ * Bump to Standards-Version 3.9.3.
+ * Enable test suite, with test suite lifted from git.
+
+ -- Clint Adams <clint at debian.org> Wed, 29 Feb 2012 10:52:09 -0500
+
haskell-persistent-template (0.6.3.1-1) unstable; urgency=low
* New upstream version.
diff -rN -u old-haskell-persistent-template//control new-haskell-persistent-template//control
--- old-haskell-persistent-template//control 2012-02-29 16:35:01.927302717 +0000
+++ new-haskell-persistent-template//control 2012-02-29 16:35:01.939251589 +0000
@@ -9,23 +9,29 @@
, ghc
, ghc-prof
, ghc-ghci
+ , libghc-aeson-dev
+ , libghc-aeson-prof
, libghc-monad-control-dev (>> 0.2)
, libghc-monad-control-dev (<< 0.4)
, libghc-monad-control-prof
- , libghc-persistent-dev (>= 0.6.2)
- , libghc-persistent-dev (<< 0.7)
+ , libghc-persistent-dev (>> 0.8)
+ , libghc-persistent-dev (<< 0.9)
, libghc-persistent-prof
, libghc-text-dev (>> 0.5)
, libghc-text-dev (<< 1.0)
, libghc-text-prof
, libghc-transformers-dev (>> 0.2)
, libghc-transformers-prof
+ , libghc-hspec-dev
+ , libghc-hunit-dev
+ , libghc-quickcheck2-dev
Build-Depends-Indep: ghc-doc
+ , libghc-aeson-doc
, libghc-monad-control-doc
, libghc-persistent-doc
, libghc-text-doc
, libghc-transformers-doc
-Standards-Version: 3.9.2
+Standards-Version: 3.9.3
Homepage: http://hackage.haskell.org/package/persistent-template
Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-persistent-template
Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-persistent-template
diff -rN -u old-haskell-persistent-template//patches/series new-haskell-persistent-template//patches/series
--- old-haskell-persistent-template//patches/series 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-persistent-template//patches/series 2012-02-29 16:35:01.939251589 +0000
@@ -0,0 +1,2 @@
+testsuite.diff
+testsuite-fix.diff
diff -rN -u old-haskell-persistent-template//patches/testsuite.diff new-haskell-persistent-template//patches/testsuite.diff
--- old-haskell-persistent-template//patches/testsuite.diff 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-persistent-template//patches/testsuite.diff 2012-02-29 16:35:01.939251589 +0000
@@ -0,0 +1,51 @@
+--- /dev/null
++++ b/test/main.hs
+@@ -0,0 +1,48 @@
++{-# LANGUAGE OverloadedStrings, QuasiQuotes, TemplateHaskell, TypeFamilies, GADTs #-}
++import Test.Hspec.Monadic
++import Test.Hspec.QuickCheck
++import Test.Hspec.HUnit()
++import Test.HUnit
++import Data.ByteString.Lazy.Char8 ()
++import Test.QuickCheck.Arbitrary
++import Control.Applicative ((<$>), (<*>))
++
++import Database.Persist
++import Database.Persist.TH
++import Data.Text (Text, pack)
++import Data.Aeson
++
++mkPersist sqlSettings [persistUpperCase|
++Person json
++ name Text
++ age Int Maybe
++ address Address
++Address json
++ street Text
++ city Text
++ zip Int Maybe
++NoJson
++ foo Text
++|]
++
++-- ensure no-json works
++instance ToJSON (NoJsonGeneric b) where
++ toJSON = undefined
++instance FromJSON (NoJsonGeneric b) where
++ parseJSON = undefined
++
++arbitraryT = pack <$> arbitrary
++
++instance Arbitrary (PersonGeneric b) where
++ arbitrary = Person <$> arbitraryT <*> arbitrary <*> arbitrary
++instance Arbitrary (AddressGeneric b) where
++ arbitrary = Address <$> arbitraryT <*> arbitraryT <*> arbitrary
++
++main :: IO ()
++main = hspecX $ do
++ describe "JSON serialization" $ do
++ prop "to/from is idempotent" $ \person ->
++ decode (encode person) == Just (person :: Person)
++ it "decode" $
++ decode "{\"name\":\"Michael\",\"age\":27,\"address\":{\"street\":\"Narkis\",\"city\":\"Maalot\"}}" @?= Just
++ (Person "Michael" (Just 27) $ Address "Narkis" "Maalot" Nothing)
diff -rN -u old-haskell-persistent-template//patches/testsuite-fix.diff new-haskell-persistent-template//patches/testsuite-fix.diff
--- old-haskell-persistent-template//patches/testsuite-fix.diff 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-persistent-template//patches/testsuite-fix.diff 2012-02-29 16:35:01.939251589 +0000
@@ -0,0 +1,8 @@
+--- a/test/main.hs
++++ b/test/main.hs
+@@ -1,4 +1,4 @@
+-{-# LANGUAGE OverloadedStrings, QuasiQuotes, TemplateHaskell, TypeFamilies, GADTs #-}
++{-# LANGUAGE OverloadedStrings, QuasiQuotes, TemplateHaskell, TypeFamilies, GADTs, EmptyDataDecls #-}
+ import Test.Hspec.Monadic
+ import Test.Hspec.QuickCheck
+ import Test.Hspec.HUnit()
diff -rN -u old-haskell-persistent-template//rules new-haskell-persistent-template//rules
--- old-haskell-persistent-template//rules 2012-02-29 16:35:01.887257439 +0000
+++ new-haskell-persistent-template//rules 2012-02-29 16:35:01.939251589 +0000
@@ -1,4 +1,6 @@
#!/usr/bin/make -f
+DEB_ENABLE_TESTS = yes
+
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/hlibrary.mk
More information about the Pkg-haskell-commits
mailing list