Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions EHC/ehclib/array/Data/Array.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Control/Category.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Control.Category
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Control/Monad/Fix.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad.Fix
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Control/Monad/ST/Lazy.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad.ST.Lazy
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Data/Complex.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Data.Complex
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Data/Dynamic.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Data.Dynamic
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Data/Foldable.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Data.Foldable
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Data/Monoid.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Data.Monoid
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Data/Ratio.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Data.Ratio
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Data/Traversable.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Data.Traversable
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Numeric.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Numeric
Expand Down
1 change: 1 addition & 0 deletions EHC/ehclib/base/System/Environment.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{-# LANGUAGE CPP #-}
{-# EXCLUDE_IF_TARGET js #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Text/ParserCombinators/ReadP.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude, CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Text.ParserCombinators.ReadP
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Text/ParserCombinators/ReadPrec.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude, CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Text.ParserCombinators.ReadPrec
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Text/Read.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude, CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Text.Read
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Text/Read/Lex.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude, CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Text.Read.Lex
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Text/Show.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude, CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Text.Show
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/base/Text/Show/Functions.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-orphans, CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Text.Show.Functions
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/directory/System/Directory.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -w #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-- XXX We get some warnings on Windows

-----------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions EHC/ehclib/filepath/System/FilePath.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

{- |
Module : System.FilePath
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/filepath/System/FilePath/Internal.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

--
-- Some short examples:
--
Expand Down
1 change: 1 addition & 0 deletions EHC/ehclib/filepath/System/FilePath/Posix.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

#define MODULE_NAME Posix

Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/filepath/System/FilePath/Windows.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

#define MODULE_NAME Windows

#ifndef IS_WINDOWS
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/old-time/System/Time.hsc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-- XXX with some combinations of #defines we get warnings, e.g.
-- Warning: Defined but not used: `throwAwayReturnPointer'

Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/random/System/Random.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : System.Random
Expand Down
1 change: 1 addition & 0 deletions EHC/ehclib/uhcbase/Control/Monad.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Data/Bits.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Data.Bits
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Data/Char.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Data.Char
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Data/Either.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Data.Either
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Data/IORef.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Data.IORef
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Data/List.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Data.List
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Data/Maybe.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Data.Maybe
Expand Down
1 change: 1 addition & 0 deletions EHC/ehclib/uhcbase/Data/Typeable.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude -XOverlappingInstances -funbox-strict-fields #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-- The -XOverlappingInstances flag allows the user to over-ride
-- the instances for Typeable given here. In particular, we provide an instance
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Data/Word.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Data.Word
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Debug/Trace.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Debug.Trace
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Foreign.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Foreign
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Foreign/C/Error.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude -#include "HsBase.h" #-}
{-# EXCLUDE_IF_TARGET js #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Foreign.C.Error
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Foreign/C/String.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Foreign.C.String
Expand Down
1 change: 1 addition & 0 deletions EHC/ehclib/uhcbase/Foreign/C/Types.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
{-# EXCLUDE_IF_TARGET js #-}
-- XXX -fno-warn-unused-binds stops us warning about unused constructors,
-- but really we should just remove them if we don't want them
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Foreign/ForeignPtr.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Foreign.ForeignPtr
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Foreign/Marshal/Alloc.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Foreign.Marshal.Alloc
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Foreign/Marshal/Array.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Foreign.Marshal.Array
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Foreign/Marshal/Error.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Foreign.Marshal.Error
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Foreign/Marshal/Pool.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

--------------------------------------------------------------------------------
-- |
-- Module : Foreign.Marshal.Pool
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Foreign/Marshal/Utils.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Foreign.Marshal.Utils
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Foreign/Ptr.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Foreign.Ptr
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Foreign/StablePtr.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Foreign.StablePtr
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/Foreign/Storable.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : Foreign.Storable
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/System/IO.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude -#include "HsBase.h" #-}
{-# EXCLUDE_IF_TARGET js #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : System.IO
Expand Down
1 change: 1 addition & 0 deletions EHC/ehclib/uhcbase/System/IO/Error.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
Expand Down
2 changes: 2 additions & 0 deletions EHC/ehclib/uhcbase/System/IO/Unsafe.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}

-----------------------------------------------------------------------------
-- |
-- Module : System.IO.Unsafe
Expand Down
Loading