snoyberg / mono-traversable

Type classes for mapping, folding, and traversing monomorphic containers
152 stars 61 forks source link

`mono-traversable-class`? #217

Open L0neGamer opened 6 months ago

L0neGamer commented 6 months ago

Do you think it would be worth having a mono-traversable-class package that defines the classes, and then mono-traversable can export the instances of those classes? It would result in orphan instances, but it would mean that people can rely on a smaller package if they're accepting of a simpler interface.

raehik commented 2 months ago

Note that mono-traversable has very few non-core library dependencies (ones that GHC itself needs to build). Including transitive dependencies but excluding tiny libraries like tagged, I see

Both vector and unordered-containers are extremely common libraries (e.g. both are dependencies of aeson) and not particularly large.