Print which warning-flag controls an emitted warning
[ghc.git] / testsuite / tests / warnings / should_compile / T11128b.stderr
index 57aa22b..e3fd3e8 100644 (file)
@@ -1,10 +1,10 @@
 
-T11128b.hs:40:5: warning:
+T11128b.hs:40:5: warning: [-Wnoncanonical-monadfail-instances]
     Noncanonical ‘fail’ definition detected
     in the instance declaration for ‘Monad T1’.
     Either remove definition for ‘fail’ or define as ‘fail = Control.Monad.Fail.fail’
 
-T11128b.hs:43:5: warning:
+T11128b.hs:43:5: warning: [-Wnoncanonical-monadfail-instances]
     Noncanonical ‘fail = Control.Monad.fail’ definition detected
     in the instance declaration for ‘MonadFail T1’.
     Move definition from ‘Control.Monad.fail’ to ‘fail’