summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2013-08-26 22:03:25 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2013-08-26 23:18:07 +0200
commit795fe083e59fa22055cca53fadc36ebd26b0d2a5 (patch)
tree35c7e51458133455d779535ecbcfd1b5763c5de2 /libraries
parent4b5238a47be6f4778c5c6edbd46b3ee3bc9d3251 (diff)
downloadhaskell-795fe083e59fa22055cca53fadc36ebd26b0d2a5.tar.gz
Sync Cabal to upstream version 1.18 pre-release
Apart from bumping build-dep version bounds, `ghc-cabal` is adapted to some minor Cabal API changes, and `bin-package-db` is made aware of Cabal's recently added AGPL licence support.
Diffstat (limited to 'libraries')
m---------libraries/Cabal0
-rw-r--r--libraries/bin-package-db/Distribution/InstalledPackageInfo/Binary.hs4
-rw-r--r--libraries/bin-package-db/bin-package-db.cabal2
3 files changed, 4 insertions, 2 deletions
diff --git a/libraries/Cabal b/libraries/Cabal
-Subproject 5fa5c41cd9d2c9b4b543312af6919fe3d858865
+Subproject 85cb83d7d8dbc8e59e20d31323e660608eb5255
diff --git a/libraries/bin-package-db/Distribution/InstalledPackageInfo/Binary.hs b/libraries/bin-package-db/Distribution/InstalledPackageInfo/Binary.hs
index 123f91adae..27e23d8959 100644
--- a/libraries/bin-package-db/Distribution/InstalledPackageInfo/Binary.hs
+++ b/libraries/bin-package-db/Distribution/InstalledPackageInfo/Binary.hs
@@ -131,7 +131,8 @@ instance Binary License where
put AllRightsReserved = do putWord8 6
put OtherLicense = do putWord8 7
put (Apache v) = do putWord8 8; put v
- put (UnknownLicense str) = do putWord8 9; put str
+ put (AGPL v) = do putWord8 9; put v
+ put (UnknownLicense str) = do putWord8 10; put str
get = do
n <- getWord8
@@ -145,6 +146,7 @@ instance Binary License where
6 -> return AllRightsReserved
7 -> return OtherLicense
8 -> do v <- get; return (Apache v)
+ 9 -> do v <- get; return (AGPL v)
_ -> do str <- get; return (UnknownLicense str)
instance Binary Version where
diff --git a/libraries/bin-package-db/bin-package-db.cabal b/libraries/bin-package-db/bin-package-db.cabal
index c03399cd5b..c308b60052 100644
--- a/libraries/bin-package-db/bin-package-db.cabal
+++ b/libraries/bin-package-db/bin-package-db.cabal
@@ -18,7 +18,7 @@ Library {
build-depends: base >= 4 && < 5
build-depends: binary >= 0.5 && < 0.8,
- Cabal >= 1.8 && < 1.18
+ Cabal >= 1.18 && < 1.19
extensions: CPP
}