Skip to content

Add Map.fromSetMaybe and Map.fromSetMaybeA #1232

Description

@meooow25

Consider adding

fromSetMaybe :: (k -> Maybe a) -> Set k -> Map k a
fromSetMaybeA :: Applicative f => (k -> f (Maybe a)) -> Set k -> f (Map k a)

This looks like a small piece that is missing and would work well with #1227 for something like

generateMaybeMissingSet :: Applicative f => (k -> Maybe a) -> WhenMissingSet f k a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions