Comment Comment by marchelzo With `[a] -> Maybe a`, it's not so bad if you use `catMaybes` from Data.Maybe.map transform . catMaybes . map safeHead parent marchelzo 10 years ago
map transform . catMaybes . map safeHead