tomjaguarpaw / tilapia

Improving all Haskell's programmer interfaces
65 stars 2 forks source link

optics #74

Open tomjaguarpaw opened 3 years ago

tomjaguarpaw commented 3 years ago
arybczak commented 3 years ago

Currently the easiest way seems to be withPrism

What about review or (#)?

tomjaguarpaw commented 3 years ago

They have types

review :: Is k A_Review => Optic' k is t b -> b -> t 
(#) :: Is k A_Review => Optic' k is t b -> b -> t

i.e. they don't work on type-changing Prisms.

tomjaguarpaw commented 2 years ago

Next action: