Browse Source

Update max yesod-core to 1.4.6, Clear sandbox dependencies

- yesod-core had pool-conduit 0.1.2.3, which was causing an error.
- cabal sandbox installed dependencies will run instead of indicated version if they're already installed.
Brittany Mazza 10 years ago
parent
commit
d339f303e9
2 changed files with 6 additions and 1 deletions
  1. 1 1
      frameworks/Haskell/yesod/bench/bench.cabal
  2. 5 0
      frameworks/Haskell/yesod/setup.sh

+ 1 - 1
frameworks/Haskell/yesod/bench/bench.cabal

@@ -19,7 +19,7 @@ executable         bench
                 CPP
 
     build-depends: base                          >= 4.7        && < 5
-                 , yesod-core                    >= 1.4.2      && < 1.5
+                 , yesod-core                    >= 1.4.2      && < 1.4.6
                  , text                          >= 0.11       && < 1.3
                  , persistent                    >= 2.1        && < 2.2
                  , persistent-mysql              >= 2.1        && < 2.2

+ 5 - 0
frameworks/Haskell/yesod/setup.sh

@@ -5,6 +5,11 @@ export PATH=${HASKELL_HOME}/bin:$PATH
 cd bench
 
 ${CABAL_HOME}/bin/cabal update
+
+# Run cabal sandbox delete in order to clear old, 
+# previously installed dependencies. 
+${CABAL_HOME}/bin/cabal sandbox delete
+
 ${CABAL_HOME}/bin/cabal sandbox init
 ${CABAL_HOME}/bin/cabal --bindir=${TROOT}/bench/dist/build/bench install