Closed zrho closed 8 years ago
Looks great (grate?), thanks. I'm curious about the re
function, I still haven't fully grokked how that will work, although I sort of see how something like Costrong
identifies a product relationship between two types, like Strong
does in the opposite direction.
There are three types of profunctors this library has been missing out on, which can be quite useful in the profunctor-lens library:
Closed
is used for implementingGrate
s (http://r6research.livejournal.com/28050.html), which are an optic generalizing zipping of representable functors.Costrong
andCochoice
can be used to implement a functionre
that not only reversesIso
s, but is also able to e.g. reverse aPrism
to aGetter
.Since purescript is not lazy, the instances for
Cochoice
andCostrong
found in the Haskell analog of this library unfortunately can not work.Forget
andTagged
, however, are instances ofCochoice
andCostrong
, respectively. Maybe we should add them, too; with a more descriptive name perhaps?