ifdef the 810 parts so we still build on older ghcs

This commit is contained in:
Georgi Lyubenov 2020-04-28 21:20:12 +03:00
parent e82cbbd4d6
commit 4eece51af6
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,6 @@
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE CPP #-}
------------------------------------------------------------------------------
-- The MIT License (MIT)
@ -46,7 +47,9 @@ import Polysemy.Plugin.Fundep.Utils
import TcEvidence
import TcPluginM (TcPluginM, tcPluginIO)
import TcRnTypes
#if __GLASGOW_HASKELL__ >= 810
import Constraint
#endif
import TcSMonad hiding (tcLookupClass)
import Type

View File

@ -1,9 +1,15 @@
{-# LANGUAGE CPP #-}
module Polysemy.Plugin.Fundep.Unification where
import Data.Bool
import Data.Function (on)
import qualified Data.Set as S
#if __GLASGOW_HASKELL__ >= 810
import Constraint
#else
import TcRnTypes
#endif
import Type