summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-05-14 09:31:57 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2014-05-14 10:52:21 +0200
commit88c0870b44a3854bc6608055e7ef84da17324830 (patch)
tree71f68e63fe32205d23586506c16d833c007308fa /utils
parentdd92e2179e3171a0630834b773c08d416101980d (diff)
downloadhaskell-88c0870b44a3854bc6608055e7ef84da17324830.tar.gz
Remove LANGUAGE pragrams implied by Haskell2010
Haskell2010 implies (at least) EmptyDataDecls, ForeignFunctionInterface, PatternGuards, DoAndIfThenElse, and RelaxedPolyRec. This is a follow-up to dd92e2179e3171a0630834b773c08d416101980d Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Diffstat (limited to 'utils')
-rw-r--r--utils/checkUniques/Makefile2
-rw-r--r--utils/checkUniques/checkUniques.hs2
-rw-r--r--utils/dll-split/Main.hs3
-rw-r--r--utils/ghc-pkg/Main.hs2
-rw-r--r--utils/ghctags/Main.hs2
-rw-r--r--utils/runghc/runghc.hs2
6 files changed, 4 insertions, 9 deletions
diff --git a/utils/checkUniques/Makefile b/utils/checkUniques/Makefile
index a7b2df17e2..b017473da3 100644
--- a/utils/checkUniques/Makefile
+++ b/utils/checkUniques/Makefile
@@ -13,4 +13,4 @@ check: checkUniques
./checkUniques mkPreludeMiscIdUnique $(PREL_NAMES) $(DS_META)
checkUniques: checkUniques.hs
- $(GHC) --make $@
+ $(GHC) -O -XHaskell2010 --make $@
diff --git a/utils/checkUniques/checkUniques.hs b/utils/checkUniques/checkUniques.hs
index d8858dee26..2eda188e3c 100644
--- a/utils/checkUniques/checkUniques.hs
+++ b/utils/checkUniques/checkUniques.hs
@@ -1,5 +1,3 @@
-{-# LANGUAGE PatternGuards #-}
-
-- Some things could be improved, e.g.:
-- * Check that each file given contains at least one instance of the
-- function
diff --git a/utils/dll-split/Main.hs b/utils/dll-split/Main.hs
index c0e370641c..c3f5a15a4a 100644
--- a/utils/dll-split/Main.hs
+++ b/utils/dll-split/Main.hs
@@ -1,6 +1,3 @@
-
-{-# LANGUAGE PatternGuards #-}
-
module Main (main) where
import Control.Monad
diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs
index 30acbe2eb8..6bac88b379 100644
--- a/utils/ghc-pkg/Main.hs
+++ b/utils/ghc-pkg/Main.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE PatternGuards, CPP, ForeignFunctionInterface #-}
+{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
--
-- (c) The University of Glasgow 2004-2009.
diff --git a/utils/ghctags/Main.hs b/utils/ghctags/Main.hs
index a67891e16a..815cc7ca18 100644
--- a/utils/ghctags/Main.hs
+++ b/utils/ghctags/Main.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE PatternGuards, ScopedTypeVariables #-}
+{-# LANGUAGE ScopedTypeVariables #-}
module Main where
import Prelude hiding ( mod, id, mapM )
diff --git a/utils/runghc/runghc.hs b/utils/runghc/runghc.hs
index 5280cb3344..47a6bc57d5 100644
--- a/utils/runghc/runghc.hs
+++ b/utils/runghc/runghc.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE CPP, ForeignFunctionInterface #-}
+{-# LANGUAGE CPP #-}
#include "ghcconfig.h"
-----------------------------------------------------------------------------
--