summaryrefslogtreecommitdiff
path: root/testsuite/tests/rebindable
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-12-22 13:55:30 -0500
committerBen Gamari <ben@smart-cactus.org>2016-12-23 15:01:56 -0500
commit8f89e76389569b73ce0d7550302641bbea438dfc (patch)
tree0b4f9ba882d690d44131c90cb744c27e4a510069 /testsuite/tests/rebindable
parentf95e6697250ad641efb167ae3cff65eaa5e96d07 (diff)
downloadhaskell-8f89e76389569b73ce0d7550302641bbea438dfc.tar.gz
rename: Don't require 'fail' in non-monadic contexts
Fixes #11216.
Diffstat (limited to 'testsuite/tests/rebindable')
-rw-r--r--testsuite/tests/rebindable/T11216A.hs8
-rw-r--r--testsuite/tests/rebindable/all.T3
2 files changed, 10 insertions, 1 deletions
diff --git a/testsuite/tests/rebindable/T11216A.hs b/testsuite/tests/rebindable/T11216A.hs
new file mode 100644
index 0000000000..4bc06f6da9
--- /dev/null
+++ b/testsuite/tests/rebindable/T11216A.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE RebindableSyntax #-}
+
+module Bug where
+
+data Maybe a = Just a | Nothing
+
+foo :: [Maybe a] -> [a]
+foo xs = [ x | Just x <- xs ]
diff --git a/testsuite/tests/rebindable/all.T b/testsuite/tests/rebindable/all.T
index f1737e9603..dd51e2b1cf 100644
--- a/testsuite/tests/rebindable/all.T
+++ b/testsuite/tests/rebindable/all.T
@@ -31,5 +31,6 @@ test('T4851', normal, compile, [''])
test('T5908', normal, compile, [''])
test('T10112', normal, compile, [''])
-test('T11216', [expect_broken(11216)], compile, [''])
+test('T11216', normal, compile, [''])
+test('T11216A', normal, compile, [''])
test('T12080', normal, compile, [''])