generic-lens-1.2.0.0.patch 1.34 KB
Newer Older
1 2 3 4
diff -ru generic-lens-1.2.0.0.orig/src/Data/Generics/Product/Any.hs generic-lens-1.2.0.0/src/Data/Generics/Product/Any.hs
--- generic-lens-1.2.0.0.orig/src/Data/Generics/Product/Any.hs	2001-09-08 21:46:40.000000000 -0400
+++ generic-lens-1.2.0.0/src/Data/Generics/Product/Any.hs	2019-07-27 09:36:08.986915947 -0400
@@ -53,7 +53,7 @@
5 6 7 8 9 10 11 12
 -- 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'
13 14 15 16
diff -ru generic-lens-1.2.0.0.orig/src/Data/Generics/Sum/Any.hs generic-lens-1.2.0.0/src/Data/Generics/Sum/Any.hs
--- generic-lens-1.2.0.0.orig/src/Data/Generics/Sum/Any.hs	2001-09-08 21:46:40.000000000 -0400
+++ generic-lens-1.2.0.0/src/Data/Generics/Sum/Any.hs	2019-07-27 09:36:08.986915947 -0400
@@ -61,7 +61,7 @@
17 18 19 20 21 22 23 24
 -- :}
 
 -- |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.