diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-05-14 09:31:57 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-05-14 10:52:21 +0200 |
commit | 88c0870b44a3854bc6608055e7ef84da17324830 (patch) | |
tree | 71f68e63fe32205d23586506c16d833c007308fa | |
parent | dd92e2179e3171a0630834b773c08d416101980d (diff) | |
download | haskell-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>
-rw-r--r-- | compiler/cmm/Hoopl/Dataflow.hs | 2 | ||||
-rw-r--r-- | distrib/compare/Makefile | 2 | ||||
-rw-r--r-- | distrib/compare/compare.hs | 2 | ||||
-rw-r--r-- | ghc/Main.hs | 1 | ||||
-rw-r--r-- | libraries/integer-simple/GHC/Integer/Type.hs | 3 | ||||
-rw-r--r-- | utils/checkUniques/Makefile | 2 | ||||
-rw-r--r-- | utils/checkUniques/checkUniques.hs | 2 | ||||
-rw-r--r-- | utils/dll-split/Main.hs | 3 | ||||
-rw-r--r-- | utils/ghc-pkg/Main.hs | 2 | ||||
-rw-r--r-- | utils/ghctags/Main.hs | 2 | ||||
-rw-r--r-- | utils/runghc/runghc.hs | 2 |
11 files changed, 7 insertions, 16 deletions
diff --git a/compiler/cmm/Hoopl/Dataflow.hs b/compiler/cmm/Hoopl/Dataflow.hs index 78b930a20f..7105195d3c 100644 --- a/compiler/cmm/Hoopl/Dataflow.hs +++ b/compiler/cmm/Hoopl/Dataflow.hs @@ -9,7 +9,7 @@ -- specialised to the UniqSM monad. -- -{-# LANGUAGE RankNTypes, ScopedTypeVariables, GADTs, EmptyDataDecls, PatternGuards, TypeFamilies, MultiParamTypeClasses #-} +{-# LANGUAGE RankNTypes, ScopedTypeVariables, GADTs, TypeFamilies, MultiParamTypeClasses #-} {-# OPTIONS_GHC -fprof-auto-top #-} {-# LANGUAGE Trustworthy #-} diff --git a/distrib/compare/Makefile b/distrib/compare/Makefile index f65c0419eb..49645783e2 100644 --- a/distrib/compare/Makefile +++ b/distrib/compare/Makefile @@ -2,7 +2,7 @@ GHC = ghc compare: *.hs - "$(GHC)" -O --make -Wall -Werror $@ + "$(GHC)" -O -XHaskell2010 --make -Wall -Werror $@ .PHONY: clean clean: diff --git a/distrib/compare/compare.hs b/distrib/compare/compare.hs index 81055c2826..8653e3f6aa 100644 --- a/distrib/compare/compare.hs +++ b/distrib/compare/compare.hs @@ -1,5 +1,3 @@ -{-# LANGUAGE PatternGuards #-} - module Main (main) where import Control.Monad.State diff --git a/ghc/Main.hs b/ghc/Main.hs index d056bf97c4..fcb9bd15a1 100644 --- a/ghc/Main.hs +++ b/ghc/Main.hs @@ -1,5 +1,4 @@ {-# OPTIONS -fno-warn-incomplete-patterns -optc-DNON_POSIX_SOURCE #-} -{-# LANGUAGE ForeignFunctionInterface #-} ----------------------------------------------------------------------------- -- diff --git a/libraries/integer-simple/GHC/Integer/Type.hs b/libraries/integer-simple/GHC/Integer/Type.hs index 5deecd29bb..cd39b7d6bd 100644 --- a/libraries/integer-simple/GHC/Integer/Type.hs +++ b/libraries/integer-simple/GHC/Integer/Type.hs @@ -1,6 +1,5 @@ -{-# LANGUAGE CPP, MagicHash, ForeignFunctionInterface, - NoImplicitPrelude, BangPatterns, UnboxedTuples, +{-# LANGUAGE CPP, MagicHash, NoImplicitPrelude, BangPatterns, UnboxedTuples, UnliftedFFITypes #-} -- Commentary of Integer library is located on the wiki: 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" ----------------------------------------------------------------------------- -- |