serokell / universum

:milky_way: Prelude written in @Serokell
MIT License
174 stars 26 forks source link

[#199] `concatMap` type change #257

Closed DK318 closed 2 years ago

DK318 commented 2 years ago

Description

Problem

At this moment concatMap is exported from Data.Foldable but we prefer using Container rather than Foldable.

Solution

Removed export of concatMap and made concatMap function with type concatMap :: Container c => (Element c -> [b]) -> c -> [b].

Related issues(s)

✓ Checklist for your Pull Request

Ideally a PR has all of the checkmarks set.

If something in this list is irrelevant to your PR, you should still set this checkmark indicating that you are sure it is dealt with (be that by irrelevance).

Related changes (conditional)

Stylistic guide (mandatory)