Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Default cpp by default is passed -traditional -cpp -std=gnu99 flags as

absence will break preprocessing on various linux flavors (i.e. an old
situation is therefore restored). However, to a different cpp (specified
by means of --pgmP=...) no flags (i.e. these and other) are passed, has
to be done explicitly via --optP. This allows Ruben's work to be
compiled using cpphs.
  • Loading branch information...
commit 4526152fc7b9bf1368c64b011b572b4164bdea44 1 parent 82220f8
@atzedijkstra atzedijkstra authored
Showing with 1 addition and 73 deletions.
  1. +0 −1  EHC/ehclib/array/Data/Array.hs
  2. +0 −1  EHC/ehclib/base/Control/Category.hs
  3. +0 −1  EHC/ehclib/base/Control/Monad/Fix.hs
  4. +0 −1  EHC/ehclib/base/Control/Monad/ST/Lazy.hs
  5. +0 −1  EHC/ehclib/base/Data/Complex.hs
  6. +0 −1  EHC/ehclib/base/Data/Dynamic.hs
  7. +0 −1  EHC/ehclib/base/Data/Foldable.hs
  8. +0 −1  EHC/ehclib/base/Data/Monoid.hs
  9. +0 −1  EHC/ehclib/base/Data/Ratio.hs
  10. +0 −1  EHC/ehclib/base/Data/Traversable.hs
  11. +0 −1  EHC/ehclib/base/Numeric.hs
  12. +0 −1  EHC/ehclib/base/System/Environment.hs
  13. +0 −1  EHC/ehclib/base/Text/ParserCombinators/ReadP.hs
  14. +0 −1  EHC/ehclib/base/Text/ParserCombinators/ReadPrec.hs
  15. +0 −1  EHC/ehclib/base/Text/Read.hs
  16. +0 −1  EHC/ehclib/base/Text/Read/Lex.hs
  17. +0 −1  EHC/ehclib/base/Text/Show.hs
  18. +0 −1  EHC/ehclib/base/Text/Show/Functions.hs
  19. +0 −1  EHC/ehclib/directory/System/Directory.hs
  20. +0 −1  EHC/ehclib/filepath/System/FilePath.hs
  21. +0 −1  EHC/ehclib/filepath/System/FilePath/Internal.hs
  22. +0 −1  EHC/ehclib/filepath/System/FilePath/Posix.hs
  23. +0 −1  EHC/ehclib/filepath/System/FilePath/Windows.hs
  24. +0 −1  EHC/ehclib/old-time/System/Time.hsc
  25. +0 −1  EHC/ehclib/random/System/Random.hs
  26. +0 −1  EHC/ehclib/uhcbase/Control/Monad.hs
  27. +0 −1  EHC/ehclib/uhcbase/Data/Bits.hs
  28. +0 −1  EHC/ehclib/uhcbase/Data/Char.hs
  29. +0 −1  EHC/ehclib/uhcbase/Data/Either.hs
  30. +0 −1  EHC/ehclib/uhcbase/Data/IORef.hs
  31. +0 −1  EHC/ehclib/uhcbase/Data/List.hs
  32. +0 −1  EHC/ehclib/uhcbase/Data/Maybe.hs
  33. +0 −1  EHC/ehclib/uhcbase/Data/Typeable.hs
  34. +0 −1  EHC/ehclib/uhcbase/Data/Word.hs
  35. +0 −1  EHC/ehclib/uhcbase/Debug/Trace.hs
  36. +0 −1  EHC/ehclib/uhcbase/Foreign.hs
  37. +0 −1  EHC/ehclib/uhcbase/Foreign/C/Error.hs
  38. +0 −1  EHC/ehclib/uhcbase/Foreign/C/String.hs
  39. +0 −1  EHC/ehclib/uhcbase/Foreign/C/Types.hs
  40. +0 −1  EHC/ehclib/uhcbase/Foreign/ForeignPtr.hs
  41. +0 −1  EHC/ehclib/uhcbase/Foreign/Marshal/Alloc.hs
  42. +0 −1  EHC/ehclib/uhcbase/Foreign/Marshal/Array.hs
  43. +0 −1  EHC/ehclib/uhcbase/Foreign/Marshal/Error.hs
  44. +0 −1  EHC/ehclib/uhcbase/Foreign/Marshal/Pool.hs
  45. +0 −1  EHC/ehclib/uhcbase/Foreign/Marshal/Utils.hs
  46. +0 −1  EHC/ehclib/uhcbase/Foreign/Ptr.hs
  47. +0 −1  EHC/ehclib/uhcbase/Foreign/StablePtr.hs
  48. +0 −1  EHC/ehclib/uhcbase/Foreign/Storable.hs
  49. +0 −1  EHC/ehclib/uhcbase/System/IO.hs
  50. +0 −1  EHC/ehclib/uhcbase/System/IO/Error.hs
  51. +0 −1  EHC/ehclib/uhcbase/System/IO/Unsafe.hs
  52. +0 −1  EHC/ehclib/uhcbase/System/Posix/Internals.hs
  53. +0 −1  EHC/ehclib/uhcbase/System/Posix/Types.hs
  54. +0 −1  EHC/ehclib/uhcbase/UHC/Array.chs
  55. +0 −1  EHC/ehclib/uhcbase/UHC/Base.chs
  56. +0 −1  EHC/ehclib/uhcbase/UHC/Bits.chs
  57. +0 −1  EHC/ehclib/uhcbase/UHC/BoxArray.chs
  58. +0 −1  EHC/ehclib/uhcbase/UHC/Float.chs
  59. +0 −1  EHC/ehclib/uhcbase/UHC/ForeignPtr.chs
  60. +0 −1  EHC/ehclib/uhcbase/UHC/Generics.hs
  61. +0 −1  EHC/ehclib/uhcbase/UHC/Handle.chs
  62. +0 −1  EHC/ehclib/uhcbase/UHC/IO.chs
  63. +0 −1  EHC/ehclib/uhcbase/UHC/IOBase.chs
  64. +0 −1  EHC/ehclib/uhcbase/UHC/MVar.chs
  65. +0 −1  EHC/ehclib/uhcbase/UHC/OldIO.chs
  66. +0 −1  EHC/ehclib/uhcbase/UHC/Ord.chs
  67. +0 −1  EHC/ehclib/uhcbase/UHC/Prims.chs
  68. +0 −1  EHC/ehclib/uhcbase/UHC/Ptr.chs
  69. +0 −1  EHC/ehclib/uhcbase/UHC/Run.chs
  70. +0 −1  EHC/ehclib/uhcbase/UHC/Show.chs
  71. +0 −1  EHC/ehclib/uhcbase/UHC/Weak.chs
  72. +0 −1  EHC/ehclib/unix/System/Posix/Files.hsc
  73. +1 −1  EHC/src/ehc/Opts.chs
View
1  EHC/ehclib/array/Data/Array.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Control/Category.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Control/Monad/Fix.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Control/Monad/ST/Lazy.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Data/Complex.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Data/Dynamic.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Data/Foldable.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Data/Monoid.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Data/Ratio.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Data/Traversable.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Numeric.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/System/Environment.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE CPP #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Text/ParserCombinators/ReadP.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Text/ParserCombinators/ReadPrec.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Text/Read.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Text/Read/Lex.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Text/Show.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/base/Text/Show/Functions.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-orphans, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/directory/System/Directory.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -w #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-- XXX We get some warnings on Windows
View
1  EHC/ehclib/filepath/System/FilePath.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
{- |
Module : System.FilePath
View
1  EHC/ehclib/filepath/System/FilePath/Internal.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
--
-- Some short examples:
View
1  EHC/ehclib/filepath/System/FilePath/Posix.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
#define MODULE_NAME Posix
View
1  EHC/ehclib/filepath/System/FilePath/Windows.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
#define MODULE_NAME Windows
View
1  EHC/ehclib/old-time/System/Time.hsc
@@ -1,6 +1,5 @@
{-# 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'
View
1  EHC/ehclib/random/System/Random.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Control/Monad.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad
View
1  EHC/ehclib/uhcbase/Data/Bits.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Data/Char.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Data/Either.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Data/IORef.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Data/List.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Data/Maybe.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Data/Typeable.hs
@@ -1,6 +1,5 @@
{-# 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
View
1  EHC/ehclib/uhcbase/Data/Word.hs
@@ -1,7 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Debug/Trace.hs
@@ -1,5 +1,4 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Foreign.hs
@@ -1,7 +1,6 @@
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Foreign/C/Error.hs
@@ -1,7 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude -#include "HsBase.h" #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Foreign/C/String.hs
@@ -1,7 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Foreign/C/Types.hs
@@ -1,7 +1,6 @@
{-# 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
View
1  EHC/ehclib/uhcbase/Foreign/ForeignPtr.hs
@@ -1,7 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Foreign/Marshal/Alloc.hs
@@ -1,7 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Foreign/Marshal/Array.hs
@@ -1,7 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Foreign/Marshal/Error.hs
@@ -1,7 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Foreign/Marshal/Pool.hs
@@ -1,7 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
--------------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Foreign/Marshal/Utils.hs
@@ -1,7 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Foreign/Ptr.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Foreign/StablePtr.hs
@@ -1,7 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/Foreign/Storable.hs
@@ -1,7 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/System/IO.hs
@@ -1,7 +1,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude -#include "HsBase.h" #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/System/IO/Error.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/System/IO/Unsafe.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/System/Posix/Internals.hs
@@ -2,7 +2,6 @@
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_HADDOCK hide #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
{-# EXCLUDE_IF_TARGET js #-}
-----------------------------------------------------------------------------
View
1  EHC/ehclib/uhcbase/System/Posix/Types.hs
@@ -2,7 +2,6 @@
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/UHC/Array.chs
@@ -1,6 +1,5 @@
%%[99
{-# LANGUAGE NoImplicitPrelude, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/UHC/Base.chs
@@ -6,7 +6,6 @@
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
module UHC.Base -- adapted from the Hugs prelude
(
View
1  EHC/ehclib/uhcbase/UHC/Bits.chs
@@ -1,6 +1,5 @@
%%[99
{-# LANGUAGE NoImplicitPrelude, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
module UHC.Bits
-- export everything
View
1  EHC/ehclib/uhcbase/UHC/BoxArray.chs
@@ -10,7 +10,6 @@ All sizes and indices are in terms of machine words (that which holds a boxed va
%%[99
{-# LANGUAGE NoImplicitPrelude #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
module UHC.BoxArray
( BoxArray
View
1  EHC/ehclib/uhcbase/UHC/Float.chs
@@ -1,6 +1,5 @@
%%[99
{-# LANGUAGE NoImplicitPrelude, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
module UHC.Float
( floatToDigits
View
1  EHC/ehclib/uhcbase/UHC/ForeignPtr.chs
@@ -3,7 +3,6 @@
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_HADDOCK hide #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/UHC/Generics.hs
@@ -10,7 +10,6 @@
-- To remove
{-# LANGUAGE ScopedTypeVariables #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-- All contents moved to UHC.Base because of necessity to have definitions already available for first datatype defined.
-- This file for now functions as placeholder only, until proper place and exporting is fixed.
View
1  EHC/ehclib/uhcbase/UHC/Handle.chs
@@ -1,7 +1,6 @@
%%[99
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/uhcbase/UHC/IO.chs
@@ -2,7 +2,6 @@
{-# LANGUAGE NoImplicitPrelude, CPP #-}
{-# OPTIONS_HADDOCK hide #-}
{-# EXCLUDE_IF_TARGET js #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
#undef DEBUG_DUMP
View
1  EHC/ehclib/uhcbase/UHC/IOBase.chs
@@ -4,7 +4,6 @@
%%[99
{-# LANGUAGE NoImplicitPrelude, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
module UHC.IOBase
( -- traceBuf,
View
1  EHC/ehclib/uhcbase/UHC/MVar.chs
@@ -11,7 +11,6 @@ In GHC MVar is offered by module GHC.Conc
%%[99
{-# LANGUAGE NoImplicitPrelude #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
module UHC.MVar
( MVar
View
1  EHC/ehclib/uhcbase/UHC/OldIO.chs
@@ -4,7 +4,6 @@
%%[99
{-# LANGUAGE NoImplicitPrelude, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
module UHC.OldIO
( Handle
View
1  EHC/ehclib/uhcbase/UHC/Ord.chs
@@ -1,6 +1,5 @@
%%[99
{-# LANGUAGE NoImplicitPrelude, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
module UHC.Ord
where
View
1  EHC/ehclib/uhcbase/UHC/Prims.chs
@@ -14,7 +14,6 @@ In due time all (or most) primitives may move to here
%%[99
{-# LANGUAGE NoImplicitPrelude, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
module UHC.Prims
-- export all
View
1  EHC/ehclib/uhcbase/UHC/Ptr.chs
@@ -3,7 +3,6 @@
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_HADDOCK hide #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.Ptr
View
1  EHC/ehclib/uhcbase/UHC/Run.chs
@@ -4,7 +4,6 @@
%%[99
{-# LANGUAGE NoImplicitPrelude, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
module UHC.Run
( ehcRunMain
View
1  EHC/ehclib/uhcbase/UHC/Show.chs
@@ -1,6 +1,5 @@
%%[99
{-# LANGUAGE NoImplicitPrelude, CPP #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
module UHC.Show
( FFFormat(..)
View
1  EHC/ehclib/uhcbase/UHC/Weak.chs
@@ -3,7 +3,6 @@
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
{-# OPTIONS_HADDOCK hide #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
1  EHC/ehclib/unix/System/Posix/Files.hsc
@@ -1,7 +1,6 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-{-# OPTIONS_UHC "--optP=-traditional-cpp" #-}
-----------------------------------------------------------------------------
-- |
View
2  EHC/src/ehc/Opts.chs
@@ -252,7 +252,7 @@ ehcOptOptimizes o opts = o `Set.member` ehcOptOptimizations opts
defaultEHCOpts
= emptyEHCOpts
{ ehcOptExecOptsMp = ehcOptExecOptsMp emptyEHCOpts `Map.union` Map.fromList
- [ (Cfg.shellCmdCpp, [ExecOpt_Plain "fno-show-column", ExecOpt_Plain "P"])
+ [ (Cfg.shellCmdCpp, [ExecOpt_Plain "traditional-cpp", ExecOpt_Plain "std=gnu99", ExecOpt_Plain "fno-show-column", ExecOpt_Plain "P"])
]
}
%%]
Please sign in to comment.
Something went wrong with that request. Please try again.