Replace filterNothings function with Data.Maybe.catMaybes.