ekmett / profunctors

Haskell 98 Profunctors
http://hackage.haskell.org/package/profunctors
Other
70 stars 43 forks source link

add procomposed' using a Semigroupoid #30

Closed srijs closed 8 years ago

srijs commented 9 years ago

procomposed requires the profunctor to be a category, although it is only using composition, not the identity. This patch adds a procomposed' which is relaxing the constraint to only require a semigroupoid.

ekmett commented 9 years ago

Right now all the interaction between profunctors and semigroupoids has been kicked out to semigroupoid-extras for a whole pile of reasons.

This may be better moved there.

ekmett commented 8 years ago

I'm going to reject this one on the grounds previously mentioned. If you added this to semigroupoid-extras the patch would go in no problem.