ekmett / profunctors

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

Why does Cosieve introduce a functional dependency from the Profunctor to the Functor #31

Closed srijs closed 8 years ago

srijs commented 9 years ago

Stumbled upon this, and not understanding the theory behind it 100%, I am a bit puzzled.

Why can't a profunctor be a cosieve on multiple functors?

ekmett commented 9 years ago

It could, just like it could be representable by multiple (in that case, isomorphic) functors.

Inference would be awful rendering the split of representable into sieve and representable less useful in practice than the original.

With this inference is never worse.