From abf2fbc36945a874eb034f5e3d1df08cd498dbb8 Mon Sep 17 00:00:00 2001 From: Dmitry Bushev Date: Thu, 5 Oct 2017 14:11:46 +0300 Subject: [PATCH] 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 #-}