summaryrefslogtreecommitdiff
path: root/testsuite/tests/rebindable/T11216A.hs
blob: 4bc06f6da97a2678a00f7b58876e75f3b2588c39 (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE RebindableSyntax #-}

module Bug where

data Maybe a = Just a | Nothing

foo :: [Maybe a] -> [a]
foo xs = [ x | Just x <- xs ]