Skip to content

Commit

Permalink
Merge pull request #98 from RyanGlScott/8.8
Browse files Browse the repository at this point in the history
Give HasAny/AsAny the same VTA behavior on 8.6 and 8.8
  • Loading branch information
kcsongor authored Sep 10, 2019
2 parents 8527fb2 + 0990a7f commit 381d064
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Data/Generics/Product/Any.hs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import Data.Generics.Product.Typed
-- 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'
Expand Down
2 changes: 1 addition & 1 deletion src/Data/Generics/Sum/Any.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ import Data.Generics.Internal.VL.Prism
-- :}

-- |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.
Expand Down

0 comments on commit 381d064

Please sign in to comment.