catMaybes +base

catMaybes :: [Maybe a] -> [a]
base Data.Maybe
The catMaybes function takes a list of Maybes and returns a list of all the Just values.