import "Prelude" a = [1,2] b = [5,9] main = [(x, y) | x <- a, x==2, y <- b] -- [(2,5), (2,9)]