This question can be edited to be on-topic for StackOverflow. Instead of asking for library recommendations, you can ask how to do something specific like, "I'm trying to derive
fmapFirst
and
fmapSecond
for bifunctors ...". It's helpful if you include what you have done so far or references to what you have found researching the problem. If a solution exists in a library, you might still get an answer referring to that library, but a good answer will also include how that library works. This should be more useful to you and more useful to future readers of StackOverflow. —
Cirdec Jan 18 at 19:13