v6.3.0
This release includes a number of small but meaningful improvements to the library:
- Makes
indexList
more efficient and adds anIndex
instance forList
(@cscalfani) - Adds a re-export for
ATraversal
andATraversal'
(@pbrant) - Adds a new function,
simple
, which can be used to restrict the type of an optic to aid type inference (@LiamGoodacre) - Adds a new
lensStore
function which can be used to construct a lens when a type appears under every constructor in a sum type (@LiamGoodacre) - Adds
toArrayOf
andtoArrayOfOn
which behave like the existingtoListOf
andtoListOfOn
optics, but for arrays (@dwhitney)