[commit: ghc] wip/nfs-locking: Keep Haskell-land settings in Settings.hs. (9d35421)
git at git.haskell.org
git at git.haskell.org
Thu Oct 26 23:26:07 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/nfs-locking
Link : http://ghc.haskell.org/trac/ghc/changeset/9d35421d9ba504fb9e412027d574b455b94ff90c/ghc
>---------------------------------------------------------------
commit 9d35421d9ba504fb9e412027d574b455b94ff90c
Author: Andrey Mokhov <andrey.mokhov at ncl.ac.uk>
Date: Mon Feb 9 14:49:19 2015 +0000
Keep Haskell-land settings in Settings.hs.
>---------------------------------------------------------------
9d35421d9ba504fb9e412027d574b455b94ff90c
src/Base.hs | 2 ++
src/Settings.hs | 18 ++++++++++++++++++
2 files changed, 20 insertions(+)
diff --git a/src/Base.hs b/src/Base.hs
index fa9104a..923e13d 100644
--- a/src/Base.hs
+++ b/src/Base.hs
@@ -7,6 +7,7 @@ module Base (
module Data.Function,
module Data.Monoid,
module Data.List,
+ module Settings,
Stage (..),
Arg, Args,
ShowArg (..), ShowArgs (..),
@@ -22,6 +23,7 @@ import Control.Applicative
import Data.Function
import Data.Monoid
import Data.List
+import Settings
data Stage = Stage0 | Stage1 | Stage2 | Stage3 deriving (Eq, Enum)
diff --git a/src/Settings.hs b/src/Settings.hs
new file mode 100644
index 0000000..6ffc976
--- /dev/null
+++ b/src/Settings.hs
@@ -0,0 +1,18 @@
+module Settings (
+ IntegerLibrary (..), integerLibrary,
+ buildHaddock
+ ) where
+
+data IntegerLibrary = IntegerGmp | IntegerGmp2 | IntegerSimple
+
+instance Show IntegerLibrary where
+ show library = case library of
+ IntegerGmp -> "integer-gmp"
+ IntegerGmp2 -> "integer-gmp2"
+ IntegerSimple -> "integer-simple"
+
+integerLibrary :: IntegerLibrary
+integerLibrary = IntegerGmp2
+
+buildHaddock :: Bool
+buildHaddock = True
More information about the ghc-commits
mailing list