diff options
author | Ben Gamari <ben@smart-cactus.org> | 2016-12-22 13:55:30 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-12-23 15:01:56 -0500 |
commit | 8f89e76389569b73ce0d7550302641bbea438dfc (patch) | |
tree | 0b4f9ba882d690d44131c90cb744c27e4a510069 /testsuite/tests/rebindable/T11216A.hs | |
parent | f95e6697250ad641efb167ae3cff65eaa5e96d07 (diff) | |
download | haskell-8f89e76389569b73ce0d7550302641bbea438dfc.tar.gz |
rename: Don't require 'fail' in non-monadic contexts
Fixes #11216.
Diffstat (limited to 'testsuite/tests/rebindable/T11216A.hs')
-rw-r--r-- | testsuite/tests/rebindable/T11216A.hs | 8 |
1 files changed, 8 insertions, 0 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 ] |