diff options
author | David Luposchainsky <dluposchainsky@gmail.com> | 2015-11-24 12:45:00 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-11-24 14:02:58 +0100 |
commit | 6d147939628c8503d682ffbe2985ca435d7a7c1d (patch) | |
tree | eb488f759377137f003a99c248a8d6dc2025b1c3 /testsuite/tests/wcompat-warnings/WCompatWarningsOn.hs | |
parent | c05fdddec71f9dc8ebe62d751ccf03367128072a (diff) | |
download | haskell-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.hs | 12 |
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 |