snoyberg / mono-traversable

Type classes for mapping, folding, and traversing monomorphic containers
155 stars 64 forks source link

tailMay? #89

Closed JJJollyjim closed 8 years ago

JJJollyjim commented 8 years ago

Data.MonoTraversable defines headMay as a safe counterpart to headEx.

Data.Sequences defines tailEx. Any reason why not tailMay?

JJJollyjim commented 8 years ago

Looks like the definition is as simple as (fmap snd) . uncons. Happy to PR with docs etc if requested.

snoyberg commented 8 years ago

Sounds good, thanks!

On Mon, Feb 8, 2016, 12:34 PM Jamie notifications@github.com wrote:

Looks like the definition is as simple as (fmap snd) . uncons. Happy to PR with docs etc if requested.

— Reply to this email directly or view it on GitHub https://github.com/snoyberg/mono-traversable/issues/89#issuecomment-181298379 .

snoyberg commented 8 years ago

Bump