News for hackers. Stuff that matters.
Re:Building a Better Custom Haskell Prelude by marchelzo on Friday April 08, 2016 @03:27PM (#11457206)
With `[a] -> Maybe a`, it's not so bad if you use `catMaybes` from Data.Maybe.

map transform . catMaybes . map safeHead

Re:Building a Better Custom Haskell Prelude by koloron on Friday April 08, 2016 @03:51PM (#11457389)
Even better with mapMaybe:

    map transform . mapMaybe safeHead