these-lens 1.0.1.2 → 1.0.1.3
raw patch · 2 files changed
+10/−33 lines, 2 filesdep ~basedep ~lensdep ~thesePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, lens, these
API changes (from Hackage documentation)
Files
- src/Data/These/Lens.hs +0/−22
- these-lens.cabal +10/−11
src/Data/These/Lens.hs view
@@ -1,10 +1,8 @@-{-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE Trustworthy #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE UndecidableInstances #-}-{-# OPTIONS_GHC -fno-warn-orphans #-} module Data.These.Lens ( -- * Traversals here, there,@@ -19,11 +17,6 @@ import Control.Lens (Prism', Traversal, prism) import Data.These -#if !MIN_VERSION_lens(5,0,0)-import Control.Lens (Each (..), Swapped (..), iso)-import Data.These.Combinators (swapThese)-#endif- -- $setup -- >>> import Data.These -- >>> import Control.Lens@@ -84,18 +77,3 @@ -- /Note:/ cannot change type. _These :: Prism' (These a b) (a, b) _These = prism (uncurry These) (these (Left . This) (Left . That) (\x y -> Right (x, y)))------------------------------------------------------------------------------------ Orphans----------------------------------------------------------------------------------#if !MIN_VERSION_lens(5,0,0)-instance Swapped These where- swapped = iso swapThese swapThese---- | @since 1.0.1-instance (a ~ a', b ~ b') => Each (These a a') (These b b') a b where- each f (This a) = This <$> f a- each f (That b) = That <$> f b- each f (These a b) = These <$> f a <*> f b-#endif
these-lens.cabal view
@@ -1,6 +1,6 @@ cabal-version: >=1.10 name: these-lens-version: 1.0.1.2+version: 1.0.1.3 synopsis: Lenses for These homepage: https://github.com/haskellari/these license: BSD3@@ -12,17 +12,16 @@ extra-source-files: CHANGELOG.md description: This package provides Prism and Traversals for @These@. tested-with:- GHC ==7.4.2- || ==7.6.3- || ==7.8.4- || ==7.10.3- || ==8.0.2+ GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4- || ==8.10.4- || ==9.0.1+ || ==8.10.7+ || ==9.0.2+ || ==9.2.7+ || ==9.4.4+ || ==9.6.1 , GHCJS ==8.4 source-repository head@@ -41,8 +40,8 @@ exposed-modules: Data.These.Lens -- ghc boot libs- build-depends: base >=4.5.1.0 && <4.16- build-depends: these >=1 && <1.2+ build-depends: base >=4.9 && <4.19+ build-depends: these >=1.2 && <1.3 -- other dependencies- build-depends: lens >=4.17.1 && <5.1+ build-depends: lens >=5.2.1 && <5.3