Skip to content

Commit 7c8c718

Browse files
committed
Fix Map hiding for older GHCs, remove ghc 8.1 again, fix cabal-2.0 cmds
ghc 8.1 is not trivially available in CI
1 parent 7b05f59 commit 7c8c718

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ matrix:
5252
- env: CABALVER=1.24 GHCVER=8.0.1 HAPPYVER=1.19.5 CABAL=cabal
5353
compiler: ": #GHC 8.0.1"
5454
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.1,happy-1.19.5], sources: [hvr-ghc]}}
55-
- env: CABALVER=2.0 GHCVER=8.1.0 HAPPYVER=1.19.5 CABAL=/opt/cabal/bin/cabal-2.0 CABALPROCESS=new-
56-
compiler: ": #GHC 8.1.0"
57-
addons: {apt: {packages: [cabal-install-2.0,ghc-8.1.0,happy-1.19.5], sources: [hvr-ghc]}}
5855
- env: CABALVER=2.0 GHCVER=8.2.2 HAPPYVER=1.19.5 CABAL=/opt/cabal/bin/cabal-2.0 CABALPROCESS=new-
5956
compiler: ": #GHC 8.2.2"
6057
addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.2,happy-1.19.5], sources: [hvr-ghc]}}
@@ -106,8 +103,8 @@ script:
106103
- $CABAL ${CABALPROCESS}configure --enable-tests --enable-benchmarks -v2 # -v2 provides useful information for debugging
107104
- $CABAL ${CABALPROCESS}build # this builds all libraries and executables (including tests/benchmarks)
108105
- $CABAL ${CABALPROCESS}test
109-
- $CABAL ${CABALPROCESS}check
110-
- $CABAL ${CABALPROCESS}sdist # tests that a source-distribution can be generated
106+
- $CABAL check
107+
- $CABAL sdist # tests that a source-distribution can be generated
111108

112109
# Check that the resulting source distribution can be built & installed.
113110
# If there are no other `.tar.gz` files in `dist`, this can be even simpler:

src/System/Eval/Haskell.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ import Data.Dynamic ( Dynamic )
5252
import Data.Typeable ( Typeable )
5353

5454
import Data.Either ( )
55-
import Data.Map as Map hiding ( take )
55+
import Data.Map as Map hiding (
56+
#if MIN_VERSION_ghc(8,2,2)
57+
take
58+
#endif
59+
)
5660
import Data.Char
5761

5862
import System.IO ( )

0 commit comments

Comments
 (0)