summaryrefslogtreecommitdiff
path: root/hadrian/src/Settings/Flavours/Common.hs
diff options
context:
space:
mode:
Diffstat (limited to 'hadrian/src/Settings/Flavours/Common.hs')
-rw-r--r--hadrian/src/Settings/Flavours/Common.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/hadrian/src/Settings/Flavours/Common.hs b/hadrian/src/Settings/Flavours/Common.hs
new file mode 100644
index 0000000000..a1eb2fbba9
--- /dev/null
+++ b/hadrian/src/Settings/Flavours/Common.hs
@@ -0,0 +1,11 @@
+module Settings.Flavours.Common where
+
+import Expression
+
+-- See https://ghc.haskell.org/trac/ghc/ticket/15286 and
+-- https://phabricator.haskell.org/D4880
+naturalInBaseFixArgs :: Args
+naturalInBaseFixArgs = mconcat
+ [ input "//Natural.hs" ? pure ["-fno-omit-interface-pragmas"]
+ , input "//Num.hs" ? pure ["-fno-ignore-interface-pragmas"]
+ ]