@@ -18,7 +18,7 @@ module Data.Generics.Internal.Lens where
1818import Control.Applicative (Const(..))
1919import Data.Functor.Identity (Identity(..))
2020import Data.Profunctor (Choice(right'), Profunctor(dimap))
21−import GHC.Generics ((:*:)(..), (:+:)(..), Generic(..), K1(..), M1(..), Rep)
21+import GHC.Generics ((:*:)(..), (:+:)(..), Generic(..), M1(..), Rep)
2222
2323-- | Type alias for lens
2424type Lens' s a
@@ -76,8 +76,6 @@ repIso = dimap from (fmap to)
7676mIso :: Iso' (M1 i c f p) (f p)
7777mIso = dimap unM1 (fmap M1)
7878
79−kIso :: Iso' (K1 t a x) a
80−kIso = dimap unK1 (fmap K1)
8179
8280sumIso :: Iso' ((a :+: b) x) (Either (a x) (b x))
8381sumIso = dimap f (fmap t)