typelevel/cats

typeclass-based collections implementations

Open

#4,147 opened on Mar 9, 2022

View on GitHub
 (28 comments) (2 reactions) (0 assignees)Scala (5,438 stars) (1,241 forks)batch import
enhancementhelp wanted

Description

This is a recurring idea, most recently by @johnynek in https://github.com/typelevel/cats/pull/4118#issuecomment-1022714696.

i.e. we should work towards having a typeclass based implementation of HashSet, SortedSet, HashMap, SortedMap that use only typeclasses, not the instance methods.

Although the issue comes up in Cats since this is where we house instances for Scala stdlib, this might be a better PR for cats-collections.

Contributor guide