summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/ghc.cabal.in1
-rw-r--r--compiler/main/DynFlags.hs2
-rw-r--r--compiler/main/PlatformConstants.hs12
3 files changed, 14 insertions, 1 deletions
diff --git a/compiler/ghc.cabal.in b/compiler/ghc.cabal.in
index e5d9fd9c43..a69e25eb7a 100644
--- a/compiler/ghc.cabal.in
+++ b/compiler/ghc.cabal.in
@@ -289,6 +289,7 @@ Library
InteractiveEval
PackageConfig
Packages
+ PlatformConstants
PprTyThing
StaticFlags
SysTools
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index dcabb8fce8..52eed21a73 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -132,6 +132,7 @@ module DynFlags (
#include "HsVersions.h"
import Platform
+import PlatformConstants
import Module
import PackageConfig
import {-# SOURCE #-} PrelNames ( mAIN )
@@ -3333,7 +3334,6 @@ compilerInfo dflags
("Global Package DB", systemPackageConfig dflags)
]
-#include "../includes/dist-derivedconstants/header/GHCConstantsHaskellType.hs"
#include "../includes/dist-derivedconstants/header/GHCConstantsHaskellWrappers.hs"
bLOCK_SIZE_W :: DynFlags -> Int
diff --git a/compiler/main/PlatformConstants.hs b/compiler/main/PlatformConstants.hs
new file mode 100644
index 0000000000..03e146ca7c
--- /dev/null
+++ b/compiler/main/PlatformConstants.hs
@@ -0,0 +1,12 @@
+-------------------------------------------------------------------------------
+--
+-- | Platform constants
+--
+-- (c) The University of Glasgow 2013
+--
+-------------------------------------------------------------------------------
+
+module PlatformConstants (PlatformConstants(..)) where
+
+#include "../includes/dist-derivedconstants/header/GHCConstantsHaskellType.hs"
+