Hello community, here is the log from the commit of package ghc-aeson-qq for openSUSE:Factory checked in at 2017-07-05 23:58:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-aeson-qq (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson-qq.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-aeson-qq" Wed Jul 5 23:58:01 2017 rev:2 rq:506798 version:0.8.2 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-aeson-qq/ghc-aeson-qq.changes 2017-05-09 18:00:28.947509424 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson-qq.new/ghc-aeson-qq.changes 2017-07-05 23:58:01.407739569 +0200 @@ -1,0 +2,5 @@ +Mon Jun 19 20:53:33 UTC 2017 - [email protected] + +- Update to version 0.8.2. + +------------------------------------------------------------------- Old: ---- aeson-qq-0.8.1.tar.gz New: ---- aeson-qq-0.8.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-aeson-qq.spec ++++++ --- /var/tmp/diff_new_pack.OxIDOb/_old 2017-07-05 23:58:01.971660131 +0200 +++ /var/tmp/diff_new_pack.OxIDOb/_new 2017-07-05 23:58:01.975659567 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-aeson-qq # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,11 +19,11 @@ %global pkg_name aeson-qq %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.8.1 +Version: 0.8.2 Release: 0 Summary: JSON quasiquoter for Haskell License: MIT -Group: System/Libraries +Group: Development/Languages/Other Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel @@ -52,7 +52,7 @@ >aesonQQ :: QuasiQuoter Consult the 'README' for documentation: -<https://github.com/zalora/aeson-qq#readme>. +<https://github.com/sol/aeson-qq#readme>. %package devel Summary: Haskell %{pkg_name} library development files @@ -68,19 +68,15 @@ %prep %setup -q -n %{pkg_name}-%{version} - %build %ghc_lib_build - %install %ghc_lib_install - %check %cabal_test - %post devel %ghc_pkg_recache ++++++ aeson-qq-0.8.1.tar.gz -> aeson-qq-0.8.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-qq-0.8.1/aeson-qq.cabal new/aeson-qq-0.8.2/aeson-qq.cabal --- old/aeson-qq-0.8.1/aeson-qq.cabal 2015-08-12 11:58:07.000000000 +0200 +++ new/aeson-qq-0.8.2/aeson-qq.cabal 2017-06-13 17:30:04.000000000 +0200 @@ -1,5 +1,9 @@ +-- This file has been generated from package.yaml by hpack version 0.18.0. +-- +-- see: https://github.com/sol/hpack + name: aeson-qq -version: 0.8.1 +version: 0.8.2 synopsis: JSON quasiquoter for Haskell description: @aeson-qq@ provides a JSON quasiquoter for Haskell. . @@ -10,30 +14,31 @@ >aesonQQ :: QuasiQuoter . Consult the @README@ for documentation: - <https://github.com/zalora/aeson-qq#readme> - -homepage: http://github.com/zalora/aeson-qq + <https://github.com/sol/aeson-qq#readme> +homepage: https://github.com/sol/aeson-qq#readme +bug-reports: https://github.com/sol/aeson-qq/issues license: MIT license-file: LICENSE author: Oscar Finnsson maintainer: Simon Hengel <[email protected]> category: JSON build-type: Simple -cabal-version: >= 1.8 +cabal-version: >= 1.10 source-repository head type: git - location: https://github.com/zalora/aeson-qq/ + location: https://github.com/sol/aeson-qq library - ghc-options: - -Wall + ghc-options: -Wall hs-source-dirs: src exposed-modules: Data.Aeson.QQ other-modules: Data.JSON.QQ + Paths_aeson_qq + default-language: Haskell2010 build-depends: base >= 4.5 && < 5 , base-compat @@ -47,17 +52,19 @@ , haskell-src-meta >= 0.1.0 test-suite spec - type: - exitcode-stdio-1.0 - ghc-options: - -Wall + type: exitcode-stdio-1.0 + ghc-options: -Wall hs-source-dirs: - src, test - main-is: - Spec.hs + src + test + main-is: Spec.hs other-modules: - Person + Data.Aeson.QQ + Data.JSON.QQ Data.Aeson.QQSpec + Data.JSON.QQSpec + Person + default-language: Haskell2010 build-depends: base >= 4.5 && < 5 , base-compat @@ -65,13 +72,9 @@ , attoparsec , scientific , vector - , aeson + , aeson >= 0.6 , parsec , template-haskell - , haskell-src-meta - - , aeson + , haskell-src-meta >= 0.1.0 , hspec - - -- Neded for GHC 7.4.* , ghc-prim diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-qq-0.8.1/src/Data/Aeson/QQ.hs new/aeson-qq-0.8.2/src/Data/Aeson/QQ.hs --- old/aeson-qq-0.8.1/src/Data/Aeson/QQ.hs 2015-08-12 11:58:07.000000000 +0200 +++ new/aeson-qq-0.8.2/src/Data/Aeson/QQ.hs 2017-06-13 17:30:04.000000000 +0200 @@ -1,5 +1,5 @@ {-# LANGUAGE TemplateHaskell #-} --- | Have a look at the <https://github.com/zalora/aeson-qq#readme README> for +-- | Have a look at the <https://github.com/sol/aeson-qq#readme README> for -- documentation. module Data.Aeson.QQ (aesonQQ) where diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-qq-0.8.1/test/Data/JSON/QQSpec.hs new/aeson-qq-0.8.2/test/Data/JSON/QQSpec.hs --- old/aeson-qq-0.8.1/test/Data/JSON/QQSpec.hs 1970-01-01 01:00:00.000000000 +0100 +++ new/aeson-qq-0.8.2/test/Data/JSON/QQSpec.hs 2017-06-13 17:30:04.000000000 +0200 @@ -0,0 +1,50 @@ +{-# LANGUAGE OverloadedStrings #-} +module Data.JSON.QQSpec (main, spec) where + +import Test.Hspec + +import Data.JSON.QQ + +main :: IO () +main = hspec spec + +spec :: Spec +spec = do + describe "parsedJson" $ do + it "parses JSON" $ do + let Right value = parsedJson "{foo: 23}" + value `shouldBe` JsonObject [(HashStringKey "foo", JsonNumber 23)] + + it "parses decimal numbers" $ do + let Right value = parsedJson "{foo: 5.97}" + value `shouldBe` JsonObject [(HashStringKey "foo", JsonNumber 5.97)] + + context "empty objects" $ do + it "parses empty objects (regression test)" $ do + let Right value = parsedJson "{}" + value `shouldBe` JsonObject [] + + it "parses empty objects that include whitespace (regression test)" $ do + let Right value = parsedJson "{ }" + value `shouldBe` JsonObject [] + + it "parses empty objects that include newlines (regression test)" $ do + let Right value = parsedJson "{\n}" + value `shouldBe` JsonObject [] + + context "empty arrays" $ do + it "parses empty arrays" $ do + let Right value = parsedJson "[ ]" + value `shouldBe` JsonArray [] + + it "parses empty arrays that include whitespace (regression test)" $ do + let Right value = parsedJson "[ ]" + value `shouldBe` JsonArray [] + + it "parses empty objects that include newlines (regression test)" $ do + let Right value = parsedJson "[\n]" + value `shouldBe` JsonArray [] + + it "fails on excess input" $ do + let Left err = parsedJson "{foo: 23} some excess input" + show err `shouldBe` "\"txt\" (line 1, column 11):\nunexpected 's'\nexpecting space or end of input"
