diff options
Diffstat (limited to 'testsuite/tests/rebindable/rebindable12.hs')
-rw-r--r-- | testsuite/tests/rebindable/rebindable12.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/rebindable/rebindable12.hs b/testsuite/tests/rebindable/rebindable12.hs new file mode 100644 index 0000000000..fd2e1c7bb3 --- /dev/null +++ b/testsuite/tests/rebindable/rebindable12.hs @@ -0,0 +1,14 @@ +{-# LANGUAGE RebindableSyntax, MonadFailDesugaring #-} +{-# OPTIONS_GHC -Wmissing-monadfail-instances #-} + +-- Test that rebindable clash warnings are displayed. + +module Main where + +import Prelude + +catMaybes xs = do + Just x <- xs + return x + +main = return () |