summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2016-05-22 20:15:31 +0000
committerhallgren <hallgren@chalmers.se>2016-05-22 20:15:31 +0000
commit649ab21ceccb09aa9490863bddcb9597898e7217 (patch)
treeee711401de1d6474db463acae898e14939efc549
parentafd7e5392dfb0b623bd6c76f28d4182a2bff6f52 (diff)
Changes for compatibility with GHC 8.0.1
-rw-r--r--Setup.hs4
-rw-r--r--src/compiler/GF/Command/Commands.hs2
2 files changed, 3 insertions, 3 deletions
diff --git a/Setup.hs b/Setup.hs
index fea8a6938..97d755007 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -1,6 +1,6 @@
import Distribution.Simple
import Distribution.Simple.LocalBuildInfo
-import Distribution.Simple.BuildPaths
+import Distribution.Simple.BuildPaths(exeExtension)
import Distribution.Simple.Utils
import Distribution.Simple.Setup
import Distribution.PackageDescription hiding (Flag)
@@ -12,7 +12,7 @@ import Data.Maybe(listToMaybe)
import qualified Control.Exception as E
import System.Process(readProcess)
import System.FilePath
-import System.Directory
+import System.Directory(createDirectoryIfMissing,copyFile,doesDirectoryExist,getDirectoryContents)
--import System.Exit
--import Control.Concurrent(forkIO)
--import Control.Concurrent.Chan(newChan,writeChan,readChan)
diff --git a/src/compiler/GF/Command/Commands.hs b/src/compiler/GF/Command/Commands.hs
index feaeb0f33..cf1262f35 100644
--- a/src/compiler/GF/Command/Commands.hs
+++ b/src/compiler/GF/Command/Commands.hs
@@ -44,7 +44,7 @@ pgfEnv pgf = Env pgf mos
class (Functor m,Monad m,MonadSIO m) => HasPGFEnv m where getPGFEnv :: m PGFEnv
-instance HasPGFEnv m => TypeCheckArg m where
+instance (Monad m,HasPGFEnv m) => TypeCheckArg m where
typeCheckArg e = (either (fail . render . ppTcError) (return . fst)
. flip inferExpr e . pgf) =<< getPGFEnv