summaryrefslogtreecommitdiff
path: root/testsuite/tests/wcompat-warnings/WCompatWarningsNotOn.hs
blob: 2f86d46bc2bca02c6cd8fe0d7e95858fd7269b7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
-- Test purpose:
-- Ensure that not using -Wcompat does not enable its warnings

-- {-# OPTIONS_GHC -Wcompat #-}
-- {-# OPTIONS_GHC -Wno-compat #-}

module WCompatWarningsNotOn where

monadFail :: Monad m => m a
monadFail = do
    Just _ <- undefined
    undefined