generic-lens 1.2.0.0 → 1.2.0.1
raw patch · 4 files changed
+8/−5 lines, 4 filesdep ~basePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base
API changes (from Hackage documentation)
- Data.Generics.Product.Any: class HasAny (sel :: k) s t a b | s sel k -> a
+ Data.Generics.Product.Any: class HasAny sel s t a b | s sel -> a
- Data.Generics.Sum.Any: class AsAny (sel :: k) a s | s sel k -> a
+ Data.Generics.Sum.Any: class AsAny sel a s | s sel -> a
Files
- ChangeLog.md +3/−0
- generic-lens.cabal +3/−3
- src/Data/Generics/Product/Any.hs +1/−1
- src/Data/Generics/Sum/Any.hs +1/−1
ChangeLog.md view
@@ -1,3 +1,6 @@+## 1.2.0.1+- Give HasAny/AsAny the same VTA behavior on 8.6 and 8.8 (Ryan Scott)+ ## 1.2.0.0 - Add `HasTypesUsing` and `HasTypesCustom` for custom traversals (Lysxia) - Improve type errors when no Generic instance is defined
generic-lens.cabal view
@@ -1,5 +1,5 @@ name: generic-lens-version: 1.2.0.0+version: 1.2.0.1 synopsis: Generically derive traversals, lenses and prisms. description: This library uses GHC.Generics to derive efficient optics (traversals, lenses and prisms) for algebraic data types in a type-directed way, with a focus on good type inference and error messages when possible. @@ -11,7 +11,7 @@ category: Generics, Records, Lens build-type: Simple cabal-version: >= 1.10-Tested-With: GHC == 8.0.2, GHC == 8.2.1, GHC == 8.4.1, GHC == 8.4.3+Tested-With: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.1, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.1 extra-source-files: ChangeLog.md , examples/StarWars.hs@@ -70,7 +70,7 @@ , Data.Generics.Product.Internal.Constraints , Data.Generics.Product.Internal.HList - build-depends: base >= 4.9 && < 5.0+ build-depends: base >= 4.9 && < 5 , profunctors >= 5.0 && < 6.0 , tagged >= 0.8 && < 1 , text >= 1.2 && < 1.3
src/Data/Generics/Product/Any.hs view
@@ -53,7 +53,7 @@ -- human = Human "Tunyasz" 50 "London" -- :} -class HasAny (sel :: k) s t a b | s sel k -> a where+class HasAny sel s t a b | s sel -> a where -- |A lens that focuses on a part of a product as identified by some -- selector. Currently supported selectors are field names, positions and -- unique types. Compatible with the lens package's 'Control.Lens.Lens'
src/Data/Generics/Sum/Any.hs view
@@ -61,7 +61,7 @@ -- :} -- |Sums that have generic prisms.-class AsAny (sel :: k) a s | s sel k -> a where+class AsAny sel a s | s sel -> a where -- |A prism that projects a sum as identified by some selector. Currently -- supported selectors are constructor names and unique types. Compatible -- with the lens package's 'Control.Lens.Prism' type.