Ticket #88 (new enhancement)

Opened 6 months ago

Last modified 3 weeks ago

Add mapMaybe and catMaybes

Reported by: akio Owned by:
Priority: major Milestone:
Version: Keywords:
Cc: leuschner@…

Description

I often want to use a vector analogue of mapMaybe from Data.Maybe. Working around it is typically awkward because it requires a use of fromJust.

I'll attach a patch that implements mapMaybe and a related function, catMaybes.

Attachments

maybe.dpatch (13.1 kB) - added by akio 6 months ago.
Implements mapMaybe and catMaybes

Change History

Changed 6 months ago by akio

Implements mapMaybe and catMaybes

Changed 3 weeks ago by dleuschner

  • cc leuschner@… added

Are there any reasons not to include this? I've just built a custom version of Vector to be able to use it but it's always a bit painful to use custom patched versions that are not released on hackage.

Note: See TracTickets for help on using tickets.