summaryrefslogtreecommitdiff
path: root/testsuite/tests/wcompat-warnings/WCompatWarningsOn.hs
diff options
context:
space:
mode:
authorDavid Luposchainsky <dluposchainsky@gmail.com>2015-11-24 12:45:00 +0100
committerBen Gamari <ben@smart-cactus.org>2015-11-24 14:02:58 +0100
commit6d147939628c8503d682ffbe2985ca435d7a7c1d (patch)
treeeb488f759377137f003a99c248a8d6dc2025b1c3 /testsuite/tests/wcompat-warnings/WCompatWarningsOn.hs
parentc05fdddec71f9dc8ebe62d751ccf03367128072a (diff)
downloadhaskell-6d147939628c8503d682ffbe2985ca435d7a7c1d.tar.gz
Add -Wcompat warning flag group
Reviewers: hvr, austin, thomie, bgamari Reviewed By: hvr, austin, thomie, bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1495 GHC Trac Issues: #11000
Diffstat (limited to 'testsuite/tests/wcompat-warnings/WCompatWarningsOn.hs')
-rw-r--r--testsuite/tests/wcompat-warnings/WCompatWarningsOn.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/wcompat-warnings/WCompatWarningsOn.hs b/testsuite/tests/wcompat-warnings/WCompatWarningsOn.hs
new file mode 100644
index 0000000000..29fcc9eeb3
--- /dev/null
+++ b/testsuite/tests/wcompat-warnings/WCompatWarningsOn.hs
@@ -0,0 +1,12 @@
+-- Test purpose:
+-- Ensure that -Wcompat switches on the right warnings
+
+{-# OPTIONS_GHC -Wcompat #-}
+-- {-# OPTIONS_GHC -Wno-compat #-}
+
+module WCompatWarningsOn where
+
+monadFail :: Monad m => m a
+monadFail = do
+ Just _ <- undefined
+ undefined