packages feed

these-lens 1.0.1.1 → 1.0.1.2

raw patch · 3 files changed

+23/−10 lines, 3 filesdep ~basedep ~lens

Dependency ranges changed: base, lens

Files

CHANGELOG.md view
@@ -1,4 +1,8 @@-# 1.0.1+# 1.0.1.2++- Add `lens-5` support++# 1.0.1.1  - Add `Each These` instance 
src/Data/These/Lens.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP                   #-} {-# LANGUAGE FlexibleInstances     #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE Trustworthy           #-}@@ -15,12 +16,16 @@ import Control.Applicative (pure, (<$>), (<*>)) import Prelude             (Either (..), flip, uncurry, ($), (.)) -import Control.Lens-       (Each (..), Prism', Swapped (..), Traversal, iso, prism)+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 -- >>> import Prelude (show) @@ -84,6 +89,7 @@ -- Orphans ------------------------------------------------------------------------------- +#if !MIN_VERSION_lens(5,0,0) instance Swapped These where     swapped = iso swapThese swapThese @@ -92,3 +98,4 @@     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,8 +1,8 @@ cabal-version:      >=1.10 name:               these-lens-version:            1.0.1.1+version:            1.0.1.2 synopsis:           Lenses for These-homepage:           https://github.com/isomorphism/these+homepage:           https://github.com/haskellari/these license:            BSD3 license-file:       LICENSE author:             C. McCann, Oleg Grenrus@@ -20,13 +20,15 @@      || ==8.2.2      || ==8.4.4      || ==8.6.5-     || ==8.8.3-     || ==8.10.1+     || ==8.8.4+     || ==8.10.4+     || ==9.0.1   , GHCJS ==8.4  source-repository head   type:     git-  location: https://github.com/isomorphism/these.git+  location: https://github.com/haskellari/these.git+  subdir:   these-lens  library   default-language: Haskell2010@@ -39,8 +41,8 @@   exposed-modules:  Data.These.Lens    -- ghc boot libs-  build-depends:    base >=4.5.1.0 && <4.15+  build-depends:    base >=4.5.1.0 && <4.16   build-depends:    these >=1 && <1.2    -- other dependencies-  build-depends:    lens >=4.17.1 && <4.20+  build-depends:    lens >=4.17.1 && <5.1