You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importqualifiedData.Map.InternalasMapimportqualifiedData.Set.InternalasSetimportData.Semigroup (Arg(..))
mapToArgSet::Map.Mapka->Set.Set (Argka)
mapToArgSet Map.Tip=Set.Tip
mapToArgSet (Map.Bin sz k v l r) =Set.Bin sz (Arg k v) (mapToArgSet l) (mapToArgSet r)
This function seems safe to me, since Arg k a's Eq and Ord instances only care about k and not a. Assuming I'm right about that, would this be worth adding to Data.Map (or maybe Data.Set), as a more powerful alternative to keysSet?