Commit 6b5f6785 authored by Andrew Gibiansky's avatar Andrew Gibiansky

Merge pull request #470 from gibiansky/ghc710-travis

Adding GHC 7.10 to travis tests
parents 90731e9a 7fde48c3
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
env: env:
- CABALVER=1.18 GHCVER=7.6.3 - CABALVER=1.18 GHCVER=7.6.3
- CABALVER=1.18 GHCVER=7.8.4 # see note about Alex/Happy for GHC >= 7.8 - CABALVER=1.18 GHCVER=7.8.4 # see note about Alex/Happy for GHC >= 7.8
# - CABALVER=1.22 GHCVER=7.10.1 - CABALVER=1.22 GHCVER=7.10.1
# - CABALVER=head GHCVER=head # see section about GHC HEAD snapshots # - CABALVER=head GHCVER=head # see section about GHC HEAD snapshots
# Note: the distinction between `before_install` and `install` is not important. # Note: the distinction between `before_install` and `install` is not important.
...@@ -51,7 +51,10 @@ script: ...@@ -51,7 +51,10 @@ script:
# Build and run the test suite # Build and run the test suite
- travis_retry cabal install --only-dependencies --enable-tests - travis_retry cabal install --only-dependencies --enable-tests
- travis_retry cabal configure --enable-tests - travis_retry cabal configure --enable-tests
- travis_retry cabal test --show-details=always - |
if [ ${GHCVER%.*} = "7.8" ]; then
travis_retry cabal test --show-details=always
fi
- | - |
if [ ${GHCVER%.*} = "7.8" ]; then if [ ${GHCVER%.*} = "7.8" ]; then
./verify_formatting.py ./verify_formatting.py
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
-- Keep all the language pragmas here so it can be compiled separately. -- Keep all the language pragmas here so it can be compiled separately.
module Main where module Main where
import Prelude import Prelude
import GHC import GHC hiding (Qualified)
import GHC.Paths import GHC.Paths
import Data.IORef import Data.IORef
import Control.Monad import Control.Monad
......
...@@ -183,8 +183,9 @@ initializeImports = do ...@@ -183,8 +183,9 @@ initializeImports = do
pkg <- db pkg <- db
depId <- depends pkg depId <- depends pkg
dep <- filter ((== depId) . installedPackageId) db dep <- filter ((== depId) . installedPackageId) db
guard let idString = packageIdString' dflags (packageConfigId dep)
(iHaskellPkgName `isPrefixOf` packageIdString (packageConfigId dep)) guard (iHaskellPkgName `isPrefixOf` idString)
-- ideally the Paths_ihaskell module could provide a way to get the hash too -- ideally the Paths_ihaskell module could provide a way to get the hash too
-- (ihaskell-0.2.0.5-f2bce922fa881611f72dfc4a854353b9), for now. Things will end badly if you also -- (ihaskell-0.2.0.5-f2bce922fa881611f72dfc4a854353b9), for now. Things will end badly if you also
......
...@@ -66,7 +66,7 @@ query str = do ...@@ -66,7 +66,7 @@ query str = do
urlEncode :: String -> String urlEncode :: String -> String
urlEncode [] = [] urlEncode [] = []
urlEncode (ch:t) urlEncode (ch:t)
| (isAscii ch && isAlphaNum ch) || ch `P.elem` "-_.~" = ch : urlEncode t | (isAscii ch && isAlphaNum ch) || ch `P.elem` ("-_.~" :: String) = ch : urlEncode t
| not (isAscii ch) = P.foldr escape (urlEncode t) (eightBs [] (P.fromEnum ch)) | not (isAscii ch) = P.foldr escape (urlEncode t) (eightBs [] (P.fromEnum ch))
| otherwise = escape (P.fromEnum ch) (urlEncode t) | otherwise = escape (P.fromEnum ch) (urlEncode t)
where where
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment