From abf2fbc36945a874eb034f5e3d1df08cd498dbb8 Mon Sep 17 00:00:00 2001 From: Dmitry Bushev Date: Thu, 5 Oct 2017 14:11:46 +0300 Subject: [PATCH 1/2] Support GHC-8.2.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When compiling with GHC 8.2.2-rc1: ``` src/Error.hs:25:17: error: Variable ‘r’ used as both a kind and a type Did you intend to use TypeInType? | 25 | error :: forall (r :: RuntimeRep) . forall (a :: TYPE r) . HasCallStack => Text -> a | ^^^^^^^^^^^^^^^^^ ``` `TypeInType` should be enabled, see GHC issue 14121 https://ghc.haskell.org/trac/ghc/ticket/14121 --- src/Protolude/Error.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Protolude/Error.hs b/src/Protolude/Error.hs index 83667c648..d8e3d1fe8 100644 --- a/src/Protolude/Error.hs +++ b/src/Protolude/Error.hs @@ -3,6 +3,9 @@ {-# LANGUAGE PolyKinds #-} {-# LANGUAGE ImplicitParams #-} {-# LANGUAGE ExistentialQuantification #-} +#if ( __GLASGOW_HASKELL__ >= 800 ) +{-# LANGUAGE TypeInType #-} +#endif #if MIN_VERSION_base(4,9,0) {-# OPTIONS_GHC -fno-warn-redundant-constraints #-} From 62393669dcb03128817d074f894630abb2e2038c Mon Sep 17 00:00:00 2001 From: Stephen Diehl Date: Thu, 5 Oct 2017 13:20:47 +0100 Subject: [PATCH 2/2] update the travis file for 8.2.2 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index d62b1db2b..2bef546d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,7 @@ env: - CABALVER=1.22 GHCVER=7.10.3 - CABALVER=1.24 GHCVER=8.0.1 - CABALVER=2.0 GHCVER=8.2.1 + - CABALVER=2.0 GHCVER=8.2.2 # Note: the distinction between `before_install` and `install` is not # important.