Remove upper bounds and close #153

This commit is contained in:
Michael Snoyman 2014-03-13 07:59:58 +02:00
parent b90f8363a5
commit f534e42252
5 changed files with 69 additions and 7 deletions

View File

@ -323,9 +323,6 @@ defaultStablePackages ghcVer = unPackageMap $ execWriter $ do
addRange "Michael Snoyman" "hxt" "< 9.3.1"
addRange "Michael Snoyman" "network" "< 2.4"
-- https://github.com/fpco/stackage/issues/153
addRange "Michael Snoyman" "text" "< 1.0"
-- https://github.com/fpco/stackage/issues/178
addRange "Michael Snoyman" "MonadCatchIO-transformers" "< 0.3.1"
addRange "Michael Snoyman" "MonadCatchIO-mtl" "< 0.3.1"
@ -337,9 +334,6 @@ defaultStablePackages ghcVer = unPackageMap $ execWriter $ do
addRange "Michael Snoyman" "hint" "< 0.4"
addRange "Michael Snoyman" "ghc-mtl" "< 1.1"
-- Requires aeson 0.6.*
addRange "Michael Snoyman" "threepenny-gui" "< 0.4.1"
-- local patch
addRange "Michael Snoyman" "bson" "== 0.2.3"

View File

@ -197,10 +197,19 @@ loadPackageDB settings coreMap core deps = do
goBI f x = buildTools $ f $ condTreeData x
depName (Dependency (PackageName pn) _) = Executable pn
go gpd tree
= Map.unionsWith unionVersionRanges
= Map.filterWithKey (\k _ -> not $ ignoredDep k)
$ Map.unionsWith unionVersionRanges
$ Map.fromList (map (\(Dependency pn vr) -> (pn, vr)) $ condTreeConstraints tree)
: map (go gpd) (mapMaybe (checkCond gpd) $ condTreeComponents tree)
-- Some specific overrides for cases where getting Stackage to be smart
-- enough to handle things would be too difficult.
ignoredDep :: PackageName -> Bool
ignoredDep dep
-- The flag logic used by text-stream-decode confuses Stackage.
| dep == PackageName "text" && p == PackageName "text-stream-decode" = True
| otherwise = False
checkCond gpd (cond, tree, melse)
| checkCond' cond = Just tree
| otherwise = melse

View File

@ -0,0 +1,12 @@
diff -ru orig/foldl.cabal new/foldl.cabal
--- orig/foldl.cabal 2014-03-13 07:47:41.009928017 +0200
+++ new/foldl.cabal 2014-03-13 07:47:40.000000000 +0200
@@ -24,7 +24,7 @@
base >= 4 && < 5 ,
bytestring >= 0.9.2.1 && < 0.11,
primitive < 0.6 ,
- text >= 0.11.2.0 && < 1.1 ,
+ text >= 0.11.2.0 && < 1.2 ,
vector >= 0.7 && < 0.11
Exposed-Modules:
Control.Foldl,

View File

@ -0,0 +1,35 @@
diff -ru orig/src/Graphics/UI/Threepenny/Internal/Types.hs new/src/Graphics/UI/Threepenny/Internal/Types.hs
--- orig/src/Graphics/UI/Threepenny/Internal/Types.hs 2014-03-13 07:47:41.597928004 +0200
+++ new/src/Graphics/UI/Threepenny/Internal/Types.hs 2014-03-13 07:47:41.000000000 +0200
@@ -17,6 +17,7 @@
import Data.Map (Map)
import Data.String (fromString)
import Data.Time
+import Data.Text.Encoding (encodeUtf8, decodeUtf8)
import Network.URI
import Data.Data
@@ -62,9 +63,9 @@
-- Marshalling ElementId
instance ToJSON ElementId where
- toJSON (ElementId o) = toJSON o
+ toJSON (ElementId o) = toJSON $ decodeUtf8 o
instance FromJSON ElementId where
- parseJSON (Object v) = ElementId <$> v .: "Element"
+ parseJSON (Object v) = (ElementId . encodeUtf8) <$> v .: "Element"
parseJSON _ = mzero
diff -ru orig/threepenny-gui.cabal new/threepenny-gui.cabal
--- orig/threepenny-gui.cabal 2014-03-13 07:47:41.605928005 +0200
+++ new/threepenny-gui.cabal 2014-03-13 07:47:41.000000000 +0200
@@ -92,7 +92,7 @@
cpp-options: -DREBUG
ghc-options: -O2
build-depends: base >= 4 && < 5
- ,aeson == 0.6.*
+ ,aeson >= 0.6
,attoparsec-enumerator == 0.3.*
,bytestring >= 0.9.2 && < 0.11
,containers >= 0.4.2 && < 0.6

View File

@ -0,0 +1,12 @@
diff -ru orig/yesod-auth-oauth.cabal new/yesod-auth-oauth.cabal
--- orig/yesod-auth-oauth.cabal 2014-03-13 07:47:41.773928001 +0200
+++ new/yesod-auth-oauth.cabal 2014-03-13 07:47:41.000000000 +0200
@@ -24,7 +24,7 @@
, bytestring >= 0.9.1.4
, yesod-core >= 1.2 && < 1.3
, yesod-auth >= 1.2 && < 1.3
- , text >= 0.7 && < 0.12
+ , text >= 0.7 && < 1.2
, yesod-form >= 1.3 && < 1.4
, transformers >= 0.2.2 && < 0.4
, lifted-base >= 0.2 && < 0.3