diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2013-09-28 12:42:31 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2013-09-28 12:42:31 +0200 |
commit | a4f36a7ee7d44b04028e2fcb8a1b3d5a996fac4d (patch) | |
tree | 22662cc2a32bd373f73f0700c1607c6e41196bde | |
parent | a7e09b46ce0b3bb46329eaf96522bd2c381a297f (diff) | |
download | haskell-a4f36a7ee7d44b04028e2fcb8a1b3d5a996fac4d.tar.gz |
Drop redundant `{-# LANGUAGE #-}` pragmas
This removes language pragmas from Haskell modules which are implicitly
active with `default-language: Haskell2010`. Specifically, the following
language extension pragmas are removed by this commit:
- PatternGuards
- ForeignFunctionInterface
- EmptyDataDecls
- NoBangPatterns
Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
54 files changed, 27 insertions, 65 deletions
diff --git a/libraries/base/Control/Concurrent.hs b/libraries/base/Control/Concurrent.hs index 5637db5a0f..c487190f27 100644 --- a/libraries/base/Control/Concurrent.hs +++ b/libraries/base/Control/Concurrent.hs @@ -1,6 +1,5 @@ {-# LANGUAGE Trustworthy #-} {-# LANGUAGE CPP - , ForeignFunctionInterface , MagicHash , UnboxedTuples , ScopedTypeVariables diff --git a/libraries/base/Data/Fixed.hs b/libraries/base/Data/Fixed.hs index d027354151..ce4266d36a 100644 --- a/libraries/base/Data/Fixed.hs +++ b/libraries/base/Data/Fixed.hs @@ -1,7 +1,7 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE ScopedTypeVariables, PatternGuards #-} -{-# OPTIONS -Wall -fno-warn-unused-binds #-} +{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE DeriveDataTypeable #-} +{-# OPTIONS -Wall -fno-warn-unused-binds #-} ----------------------------------------------------------------------------- -- | diff --git a/libraries/base/Data/OldTypeable.hs b/libraries/base/Data/OldTypeable.hs index b0f4afcc1f..d6b5b6255c 100644 --- a/libraries/base/Data/OldTypeable.hs +++ b/libraries/base/Data/OldTypeable.hs @@ -3,7 +3,6 @@ , NoImplicitPrelude , OverlappingInstances , ScopedTypeVariables - , ForeignFunctionInterface , FlexibleInstances #-} {-# OPTIONS_GHC -funbox-strict-fields -fno-warn-warnings-deprecations #-} diff --git a/libraries/base/Data/Type/Equality.hs b/libraries/base/Data/Type/Equality.hs index 5293ce67d2..64d22e33ff 100644 --- a/libraries/base/Data/Type/Equality.hs +++ b/libraries/base/Data/Type/Equality.hs @@ -1,7 +1,6 @@ {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE GADTs #-} -{-# LANGUAGE EmptyDataDecls #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE NoImplicitPrelude #-} diff --git a/libraries/base/Data/Typeable.hs b/libraries/base/Data/Typeable.hs index bacb426714..b951a07d06 100644 --- a/libraries/base/Data/Typeable.hs +++ b/libraries/base/Data/Typeable.hs @@ -2,7 +2,6 @@ {-# LANGUAGE NoImplicitPrelude , OverlappingInstances , ScopedTypeVariables - , ForeignFunctionInterface , FlexibleInstances , TypeOperators , PolyKinds diff --git a/libraries/base/Debug/Trace.hs b/libraries/base/Debug/Trace.hs index 0cb5fe4127..67e67b10cd 100644 --- a/libraries/base/Debug/Trace.hs +++ b/libraries/base/Debug/Trace.hs @@ -1,5 +1,5 @@ {-# LANGUAGE Unsafe #-} -{-# LANGUAGE ForeignFunctionInterface, MagicHash, UnboxedTuples #-} +{-# LANGUAGE MagicHash, UnboxedTuples #-} ----------------------------------------------------------------------------- -- | diff --git a/libraries/base/Foreign/C/Error.hs b/libraries/base/Foreign/C/Error.hs index 86a2df5b7b..dbc0b3ec56 100644 --- a/libraries/base/Foreign/C/Error.hs +++ b/libraries/base/Foreign/C/Error.hs @@ -1,5 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE CPP, NoImplicitPrelude, ForeignFunctionInterface #-} +{-# LANGUAGE CPP, NoImplicitPrelude #-} ----------------------------------------------------------------------------- -- | diff --git a/libraries/base/Foreign/Marshal/Alloc.hs b/libraries/base/Foreign/Marshal/Alloc.hs index 9069e8aa19..a9d7040553 100644 --- a/libraries/base/Foreign/Marshal/Alloc.hs +++ b/libraries/base/Foreign/Marshal/Alloc.hs @@ -2,7 +2,6 @@ {-# LANGUAGE NoImplicitPrelude , MagicHash , UnboxedTuples - , ForeignFunctionInterface #-} ----------------------------------------------------------------------------- diff --git a/libraries/base/Foreign/Marshal/Utils.hs b/libraries/base/Foreign/Marshal/Utils.hs index 491bd125b4..4654e550f2 100644 --- a/libraries/base/Foreign/Marshal/Utils.hs +++ b/libraries/base/Foreign/Marshal/Utils.hs @@ -1,5 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE NoImplicitPrelude, ForeignFunctionInterface #-} +{-# LANGUAGE NoImplicitPrelude #-} ----------------------------------------------------------------------------- -- | diff --git a/libraries/base/Foreign/Ptr.hs b/libraries/base/Foreign/Ptr.hs index f85a7e7699..0d74a8269c 100644 --- a/libraries/base/Foreign/Ptr.hs +++ b/libraries/base/Foreign/Ptr.hs @@ -1,7 +1,6 @@ {-# LANGUAGE Trustworthy #-} {-# LANGUAGE CPP , NoImplicitPrelude - , ForeignFunctionInterface , MagicHash , GeneralizedNewtypeDeriving #-} diff --git a/libraries/base/GHC/Arr.lhs b/libraries/base/GHC/Arr.lhs index f310e2e150..023562450b 100644 --- a/libraries/base/GHC/Arr.lhs +++ b/libraries/base/GHC/Arr.lhs @@ -1,6 +1,6 @@ \begin{code} {-# LANGUAGE Unsafe #-} -{-# LANGUAGE NoImplicitPrelude, NoBangPatterns, MagicHash, UnboxedTuples #-} +{-# LANGUAGE NoImplicitPrelude, MagicHash, UnboxedTuples #-} {-# OPTIONS_GHC -funbox-strict-fields #-} {-# OPTIONS_HADDOCK hide #-} diff --git a/libraries/base/GHC/Conc/IO.hs b/libraries/base/GHC/Conc/IO.hs index 473fd0cea4..3a57c93369 100644 --- a/libraries/base/GHC/Conc/IO.hs +++ b/libraries/base/GHC/Conc/IO.hs @@ -3,7 +3,6 @@ , NoImplicitPrelude , MagicHash , UnboxedTuples - , ForeignFunctionInterface #-} {-# OPTIONS_GHC -fno-warn-missing-signatures #-} {-# OPTIONS_HADDOCK not-home #-} diff --git a/libraries/base/GHC/Conc/Signal.hs b/libraries/base/GHC/Conc/Signal.hs index 3ceb4b33d5..2d70419145 100644 --- a/libraries/base/GHC/Conc/Signal.hs +++ b/libraries/base/GHC/Conc/Signal.hs @@ -1,5 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE NoImplicitPrelude, ForeignFunctionInterface #-} +{-# LANGUAGE NoImplicitPrelude #-} module GHC.Conc.Signal ( Signal diff --git a/libraries/base/GHC/Conc/Sync.lhs b/libraries/base/GHC/Conc/Sync.lhs index 41d9e1e63b..12611f5493 100644 --- a/libraries/base/GHC/Conc/Sync.lhs +++ b/libraries/base/GHC/Conc/Sync.lhs @@ -6,11 +6,9 @@ , MagicHash , UnboxedTuples , UnliftedFFITypes - , ForeignFunctionInterface , DeriveDataTypeable , StandaloneDeriving , RankNTypes - , PatternGuards #-} {-# OPTIONS_GHC -fno-warn-missing-signatures #-} {-# OPTIONS_HADDOCK not-home #-} diff --git a/libraries/base/GHC/Conc/Windows.hs b/libraries/base/GHC/Conc/Windows.hs index ceb6b40e35..41502f0f89 100644 --- a/libraries/base/GHC/Conc/Windows.hs +++ b/libraries/base/GHC/Conc/Windows.hs @@ -1,6 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE NoImplicitPrelude, MagicHash, UnboxedTuples, ForeignFunctionInterface, - DeriveDataTypeable #-} +{-# LANGUAGE NoImplicitPrelude, MagicHash, UnboxedTuples, DeriveDataTypeable #-} {-# OPTIONS_GHC -fno-warn-missing-signatures #-} {-# OPTIONS_HADDOCK not-home #-} diff --git a/libraries/base/GHC/ConsoleHandler.hs b/libraries/base/GHC/ConsoleHandler.hs index 95810d64f2..4eaa434186 100644 --- a/libraries/base/GHC/ConsoleHandler.hs +++ b/libraries/base/GHC/ConsoleHandler.hs @@ -1,5 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE CPP, ForeignFunctionInterface #-} +{-# LANGUAGE CPP #-} ----------------------------------------------------------------------------- -- | diff --git a/libraries/base/GHC/Environment.hs b/libraries/base/GHC/Environment.hs index f5d9e2878d..257ee27ebf 100644 --- a/libraries/base/GHC/Environment.hs +++ b/libraries/base/GHC/Environment.hs @@ -1,5 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE CPP, ForeignFunctionInterface #-} +{-# LANGUAGE CPP #-} module GHC.Environment (getFullArgs) where diff --git a/libraries/base/GHC/Event/Array.hs b/libraries/base/GHC/Event/Array.hs index 47f1bc8eae..30dbd77f5b 100644 --- a/libraries/base/GHC/Event/Array.hs +++ b/libraries/base/GHC/Event/Array.hs @@ -1,5 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE BangPatterns, CPP, ForeignFunctionInterface, NoImplicitPrelude #-} +{-# LANGUAGE BangPatterns, CPP, NoImplicitPrelude #-} module GHC.Event.Array ( diff --git a/libraries/base/GHC/Event/Clock.hsc b/libraries/base/GHC/Event/Clock.hsc index 37e26cd17a..5dbdb674d3 100644 --- a/libraries/base/GHC/Event/Clock.hsc +++ b/libraries/base/GHC/Event/Clock.hsc @@ -1,5 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE NoImplicitPrelude, ForeignFunctionInterface #-} +{-# LANGUAGE NoImplicitPrelude #-} module GHC.Event.Clock (getMonotonicTime) where diff --git a/libraries/base/GHC/Event/Control.hs b/libraries/base/GHC/Event/Control.hs index 34b746a4e1..2951a6a681 100644 --- a/libraries/base/GHC/Event/Control.hs +++ b/libraries/base/GHC/Event/Control.hs @@ -1,6 +1,5 @@ {-# LANGUAGE Unsafe #-} {-# LANGUAGE CPP - , ForeignFunctionInterface , NoImplicitPrelude , ScopedTypeVariables , BangPatterns diff --git a/libraries/base/GHC/Event/EPoll.hsc b/libraries/base/GHC/Event/EPoll.hsc index e253671ac1..11392b1b25 100644 --- a/libraries/base/GHC/Event/EPoll.hsc +++ b/libraries/base/GHC/Event/EPoll.hsc @@ -1,6 +1,5 @@ {-# LANGUAGE Trustworthy #-} {-# LANGUAGE CPP - , ForeignFunctionInterface , GeneralizedNewtypeDeriving , NoImplicitPrelude , BangPatterns diff --git a/libraries/base/GHC/Event/KQueue.hsc b/libraries/base/GHC/Event/KQueue.hsc index b5eb2277c2..74e411179c 100644 --- a/libraries/base/GHC/Event/KQueue.hsc +++ b/libraries/base/GHC/Event/KQueue.hsc @@ -1,6 +1,5 @@ {-# LANGUAGE Trustworthy #-} {-# LANGUAGE CPP - , ForeignFunctionInterface , CApiFFI , GeneralizedNewtypeDeriving , NoImplicitPrelude diff --git a/libraries/base/GHC/Event/Poll.hsc b/libraries/base/GHC/Event/Poll.hsc index fc4b011d4d..a773498dc4 100644 --- a/libraries/base/GHC/Event/Poll.hsc +++ b/libraries/base/GHC/Event/Poll.hsc @@ -1,6 +1,5 @@ {-# LANGUAGE Trustworthy #-} {-# LANGUAGE CPP - , ForeignFunctionInterface , GeneralizedNewtypeDeriving , NoImplicitPrelude , BangPatterns diff --git a/libraries/base/GHC/Event/Thread.hs b/libraries/base/GHC/Event/Thread.hs index 310ff4f044..c599047db6 100644 --- a/libraries/base/GHC/Event/Thread.hs +++ b/libraries/base/GHC/Event/Thread.hs @@ -1,5 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE BangPatterns, ForeignFunctionInterface, NoImplicitPrelude #-} +{-# LANGUAGE BangPatterns, NoImplicitPrelude #-} module GHC.Event.Thread ( getSystemEventManager , getSystemTimerManager diff --git a/libraries/base/GHC/Fingerprint.hs b/libraries/base/GHC/Fingerprint.hs index b500ad5881..a7568e6bc0 100644 --- a/libraries/base/GHC/Fingerprint.hs +++ b/libraries/base/GHC/Fingerprint.hs @@ -2,8 +2,6 @@ {-# LANGUAGE CPP , NoImplicitPrelude , BangPatterns - , ForeignFunctionInterface - , EmptyDataDecls #-} -- ---------------------------------------------------------------------------- diff --git a/libraries/base/GHC/Float.lhs b/libraries/base/GHC/Float.lhs index 95192535f0..e0c4f4ae95 100644 --- a/libraries/base/GHC/Float.lhs +++ b/libraries/base/GHC/Float.lhs @@ -4,7 +4,6 @@ , NoImplicitPrelude , MagicHash , UnboxedTuples - , ForeignFunctionInterface #-} -- We believe we could deorphan this module, by moving lots of things -- around, but we haven't got there yet: diff --git a/libraries/base/GHC/Float/RealFracMethods.hs b/libraries/base/GHC/Float/RealFracMethods.hs index 9c71cf1a2e..763ba93008 100644 --- a/libraries/base/GHC/Float/RealFracMethods.hs +++ b/libraries/base/GHC/Float/RealFracMethods.hs @@ -1,6 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE CPP, MagicHash, UnboxedTuples, ForeignFunctionInterface, - NoImplicitPrelude #-} +{-# LANGUAGE CPP, MagicHash, UnboxedTuples, NoImplicitPrelude #-} {-# OPTIONS_HADDOCK hide #-} ----------------------------------------------------------------------------- diff --git a/libraries/base/GHC/Generics.hs b/libraries/base/GHC/Generics.hs index e3fddf427f..0b344c54f0 100644 --- a/libraries/base/GHC/Generics.hs +++ b/libraries/base/GHC/Generics.hs @@ -1,7 +1,6 @@ {-# LANGUAGE Trustworthy #-} {-# LANGUAGE CPP #-} {-# LANGUAGE NoImplicitPrelude #-} -{-# LANGUAGE EmptyDataDecls #-} {-# LANGUAGE TypeSynonymInstances #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE KindSignatures #-} diff --git a/libraries/base/GHC/IO/Buffer.hs b/libraries/base/GHC/IO/Buffer.hs index eb46eb1786..b17e3260f9 100644 --- a/libraries/base/GHC/IO/Buffer.hs +++ b/libraries/base/GHC/IO/Buffer.hs @@ -1,5 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE CPP, NoImplicitPrelude, ForeignFunctionInterface #-} +{-# LANGUAGE CPP, NoImplicitPrelude #-} {-# OPTIONS_GHC -funbox-strict-fields #-} ----------------------------------------------------------------------------- diff --git a/libraries/base/GHC/IO/Encoding.hs b/libraries/base/GHC/IO/Encoding.hs index 08f4c94905..eb4d74ccfc 100644 --- a/libraries/base/GHC/IO/Encoding.hs +++ b/libraries/base/GHC/IO/Encoding.hs @@ -1,5 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE CPP, NoImplicitPrelude, PatternGuards #-} +{-# LANGUAGE CPP, NoImplicitPrelude #-} {-# OPTIONS_GHC -funbox-strict-fields #-} ----------------------------------------------------------------------------- diff --git a/libraries/base/GHC/IO/Encoding/CodePage.hs b/libraries/base/GHC/IO/Encoding/CodePage.hs index ddb01fb6d4..6a8ee1a396 100644 --- a/libraries/base/GHC/IO/Encoding/CodePage.hs +++ b/libraries/base/GHC/IO/Encoding/CodePage.hs @@ -1,5 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE CPP, BangPatterns, ForeignFunctionInterface, NoImplicitPrelude, +{-# LANGUAGE CPP, BangPatterns, NoImplicitPrelude, NondecreasingIndentation, MagicHash #-} module GHC.IO.Encoding.CodePage( diff --git a/libraries/base/GHC/IO/Encoding/CodePage/API.hs b/libraries/base/GHC/IO/Encoding/CodePage/API.hs index cbc46a1f0d..f45ee905d5 100644 --- a/libraries/base/GHC/IO/Encoding/CodePage/API.hs +++ b/libraries/base/GHC/IO/Encoding/CodePage/API.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE ForeignFunctionInterface, NoImplicitPrelude, NondecreasingIndentation, RecordWildCards, ScopedTypeVariables, PatternGuards #-} +{-# LANGUAGE NoImplicitPrelude, NondecreasingIndentation, RecordWildCards, ScopedTypeVariables #-} {-# OPTIONS_GHC -fno-warn-name-shadowing #-} module GHC.IO.Encoding.CodePage.API ( mkCodePageEncoding diff --git a/libraries/base/GHC/IO/Encoding/Failure.hs b/libraries/base/GHC/IO/Encoding/Failure.hs index 35d2d93563..4b24d06012 100644 --- a/libraries/base/GHC/IO/Encoding/Failure.hs +++ b/libraries/base/GHC/IO/Encoding/Failure.hs @@ -1,5 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE NoImplicitPrelude, PatternGuards #-} +{-# LANGUAGE NoImplicitPrelude #-} ----------------------------------------------------------------------------- -- | diff --git a/libraries/base/GHC/IO/Encoding/Iconv.hs b/libraries/base/GHC/IO/Encoding/Iconv.hs index d46ade9d37..2ae6146317 100644 --- a/libraries/base/GHC/IO/Encoding/Iconv.hs +++ b/libraries/base/GHC/IO/Encoding/Iconv.hs @@ -1,7 +1,6 @@ {-# LANGUAGE Trustworthy #-} {-# LANGUAGE CPP , NoImplicitPrelude - , ForeignFunctionInterface , NondecreasingIndentation #-} {-# OPTIONS_HADDOCK hide #-} diff --git a/libraries/base/GHC/IO/FD.hs b/libraries/base/GHC/IO/FD.hs index fdeeb74c06..bcc8df9e47 100644 --- a/libraries/base/GHC/IO/FD.hs +++ b/libraries/base/GHC/IO/FD.hs @@ -2,7 +2,6 @@ {-# LANGUAGE CPP , NoImplicitPrelude , BangPatterns - , ForeignFunctionInterface , DeriveDataTypeable #-} {-# OPTIONS_GHC -fno-warn-identities #-} diff --git a/libraries/base/GHC/IO/Handle/FD.hs b/libraries/base/GHC/IO/Handle/FD.hs index df947f81b9..ac792de4fb 100644 --- a/libraries/base/GHC/IO/Handle/FD.hs +++ b/libraries/base/GHC/IO/Handle/FD.hs @@ -1,5 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE CPP, NoImplicitPrelude, PatternGuards, ForeignFunctionInterface #-} +{-# LANGUAGE CPP, NoImplicitPrelude #-} ----------------------------------------------------------------------------- -- | diff --git a/libraries/base/GHC/IO/Handle/Internals.hs b/libraries/base/GHC/IO/Handle/Internals.hs index db90864d88..e53349ac35 100644 --- a/libraries/base/GHC/IO/Handle/Internals.hs +++ b/libraries/base/GHC/IO/Handle/Internals.hs @@ -2,7 +2,6 @@ {-# LANGUAGE NoImplicitPrelude , RecordWildCards , BangPatterns - , PatternGuards , NondecreasingIndentation , RankNTypes #-} diff --git a/libraries/base/GHC/IO/Handle/Text.hs b/libraries/base/GHC/IO/Handle/Text.hs index dbc96a11a0..f182e7f382 100644 --- a/libraries/base/GHC/IO/Handle/Text.hs +++ b/libraries/base/GHC/IO/Handle/Text.hs @@ -3,10 +3,8 @@ , NoImplicitPrelude , RecordWildCards , BangPatterns - , PatternGuards , NondecreasingIndentation , MagicHash - , ForeignFunctionInterface #-} {-# OPTIONS_GHC -fno-warn-name-shadowing #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} diff --git a/libraries/base/GHC/Profiling.hs b/libraries/base/GHC/Profiling.hs index 2654ef7d4b..c0322187cb 100644 --- a/libraries/base/GHC/Profiling.hs +++ b/libraries/base/GHC/Profiling.hs @@ -1,5 +1,3 @@ -{-# LANGUAGE ForeignFunctionInterface #-} - -- | /Since: 4.7.0.0/ module GHC.Profiling where diff --git a/libraries/base/GHC/Read.lhs b/libraries/base/GHC/Read.lhs index 582ffea7e6..0cff3c3ed4 100644 --- a/libraries/base/GHC/Read.lhs +++ b/libraries/base/GHC/Read.lhs @@ -1,7 +1,6 @@ \begin{code} {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE NoImplicitPrelude, StandaloneDeriving, PatternGuards, - ScopedTypeVariables #-} +{-# LANGUAGE NoImplicitPrelude, StandaloneDeriving, ScopedTypeVariables #-} {-# OPTIONS_HADDOCK hide #-} ----------------------------------------------------------------------------- diff --git a/libraries/base/GHC/Stable.lhs b/libraries/base/GHC/Stable.lhs index a1dde83117..61f6621b88 100644 --- a/libraries/base/GHC/Stable.lhs +++ b/libraries/base/GHC/Stable.lhs @@ -3,7 +3,6 @@ {-# LANGUAGE NoImplicitPrelude , MagicHash , UnboxedTuples - , ForeignFunctionInterface #-} {-# OPTIONS_HADDOCK hide #-} diff --git a/libraries/base/GHC/Stack.hsc b/libraries/base/GHC/Stack.hsc index b95594eda2..079f5b0516 100644 --- a/libraries/base/GHC/Stack.hsc +++ b/libraries/base/GHC/Stack.hsc @@ -13,7 +13,7 @@ -- /Since: 4.5.0.0/ ----------------------------------------------------------------------------- -{-# LANGUAGE UnboxedTuples, MagicHash, EmptyDataDecls #-} +{-# LANGUAGE UnboxedTuples, MagicHash #-} module GHC.Stack ( -- * Call stack currentCallStack, diff --git a/libraries/base/GHC/Stats.hsc b/libraries/base/GHC/Stats.hsc index 07cab07346..2c9ecafce8 100644 --- a/libraries/base/GHC/Stats.hsc +++ b/libraries/base/GHC/Stats.hsc @@ -1,6 +1,5 @@ {-# LANGUAGE Safe #-} {-# LANGUAGE CPP #-} -{-# LANGUAGE ForeignFunctionInterface #-} {-# LANGUAGE RecordWildCards #-} {-# OPTIONS_GHC -funbox-strict-fields #-} diff --git a/libraries/base/GHC/TopHandler.lhs b/libraries/base/GHC/TopHandler.lhs index 09ab583a2d..9e4bc072bf 100644 --- a/libraries/base/GHC/TopHandler.lhs +++ b/libraries/base/GHC/TopHandler.lhs @@ -2,10 +2,8 @@ {-# LANGUAGE Trustworthy #-} {-# LANGUAGE CPP , NoImplicitPrelude - , ForeignFunctionInterface , MagicHash , UnboxedTuples - , PatternGuards #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_HADDOCK hide #-} diff --git a/libraries/base/GHC/TypeLits.hs b/libraries/base/GHC/TypeLits.hs index d6eba25c0a..4786f77add 100644 --- a/libraries/base/GHC/TypeLits.hs +++ b/libraries/base/GHC/TypeLits.hs @@ -2,7 +2,6 @@ {-# LANGUAGE KindSignatures #-} -- (used all over) {-# LANGUAGE TypeFamilies #-} -- for declaring operators + sing family {-# LANGUAGE TypeOperators #-} -- for declaring operator -{-# LANGUAGE EmptyDataDecls #-} -- for declaring the kinds {-# LANGUAGE GADTs #-} -- for examining type nats {-# LANGUAGE PolyKinds #-} -- for Sing family {-# LANGUAGE FlexibleContexts #-} diff --git a/libraries/base/GHC/Unicode.hs b/libraries/base/GHC/Unicode.hs index 07ddc59e05..ef58975e08 100644 --- a/libraries/base/GHC/Unicode.hs +++ b/libraries/base/GHC/Unicode.hs @@ -1,5 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE CPP, NoImplicitPrelude, ForeignFunctionInterface #-} +{-# LANGUAGE CPP, NoImplicitPrelude #-} {-# OPTIONS_HADDOCK hide #-} ----------------------------------------------------------------------------- diff --git a/libraries/base/GHC/Windows.hs b/libraries/base/GHC/Windows.hs index 40ca176942..940ba5897d 100644 --- a/libraries/base/GHC/Windows.hs +++ b/libraries/base/GHC/Windows.hs @@ -1,6 +1,5 @@ {-# LANGUAGE Trustworthy #-} {-# LANGUAGE CPP #-} -{-# LANGUAGE ForeignFunctionInterface #-} {-# LANGUAGE NoImplicitPrelude #-} ----------------------------------------------------------------------------- -- | diff --git a/libraries/base/System/CPUTime.hsc b/libraries/base/System/CPUTime.hsc index 0ea6dfbf04..85634b7473 100644 --- a/libraries/base/System/CPUTime.hsc +++ b/libraries/base/System/CPUTime.hsc @@ -1,5 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE CPP, NondecreasingIndentation, ForeignFunctionInterface, CApiFFI #-} +{-# LANGUAGE CPP, NondecreasingIndentation, CApiFFI #-} ----------------------------------------------------------------------------- -- | diff --git a/libraries/base/System/Environment.hs b/libraries/base/System/Environment.hs index 34eea8ca58..b238360d24 100644 --- a/libraries/base/System/Environment.hs +++ b/libraries/base/System/Environment.hs @@ -1,5 +1,5 @@ {-# LANGUAGE Safe #-} -{-# LANGUAGE CPP, ForeignFunctionInterface #-} +{-# LANGUAGE CPP #-} ----------------------------------------------------------------------------- -- | diff --git a/libraries/base/System/Environment/ExecutablePath.hsc b/libraries/base/System/Environment/ExecutablePath.hsc index 4f863f2f8e..22665f419b 100644 --- a/libraries/base/System/Environment/ExecutablePath.hsc +++ b/libraries/base/System/Environment/ExecutablePath.hsc @@ -1,5 +1,5 @@ {-# LANGUAGE Safe #-} -{-# LANGUAGE CPP, ForeignFunctionInterface #-} +{-# LANGUAGE CPP #-} ----------------------------------------------------------------------------- -- | diff --git a/libraries/base/System/IO.hs b/libraries/base/System/IO.hs index 93245d39fe..4b247f987d 100644 --- a/libraries/base/System/IO.hs +++ b/libraries/base/System/IO.hs @@ -1,6 +1,5 @@ {-# LANGUAGE Trustworthy #-} {-# LANGUAGE CPP, NoImplicitPrelude #-} -{-# LANGUAGE ForeignFunctionInterface #-} ----------------------------------------------------------------------------- -- | diff --git a/libraries/base/System/Mem.hs b/libraries/base/System/Mem.hs index 05d9d006db..f162a75cf4 100644 --- a/libraries/base/System/Mem.hs +++ b/libraries/base/System/Mem.hs @@ -1,5 +1,4 @@ {-# LANGUAGE Safe #-} -{-# LANGUAGE ForeignFunctionInterface #-} ----------------------------------------------------------------------------- -- | diff --git a/libraries/base/System/Posix/Internals.hs b/libraries/base/System/Posix/Internals.hs index 1869f7548d..89ef6f47a7 100644 --- a/libraries/base/System/Posix/Internals.hs +++ b/libraries/base/System/Posix/Internals.hs @@ -1,6 +1,5 @@ {-# LANGUAGE Trustworthy #-} -{-# LANGUAGE CPP, NoImplicitPrelude, ForeignFunctionInterface, CApiFFI, - EmptyDataDecls #-} +{-# LANGUAGE CPP, NoImplicitPrelude, CApiFFI #-} {-# OPTIONS_HADDOCK hide #-} ----------------------------------------------------------------------------- diff --git a/libraries/base/tests/Numeric/num009.hs b/libraries/base/tests/Numeric/num009.hs index a49f3183e1..429f0bf3c2 100644 --- a/libraries/base/tests/Numeric/num009.hs +++ b/libraries/base/tests/Numeric/num009.hs @@ -1,7 +1,5 @@ -- trac #2059 -{-# LANGUAGE ForeignFunctionInterface #-} - module Main(main) where import Control.Monad |