lens-witherable 0.1.0.0 → 0.1.0.1
raw patch · 4 files changed
+28/−7 lines, 4 filesdep ~basedep ~witherablePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, witherable
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−1
- lens-witherable.cabal +16/−4
- src/Witherable/Lens.hs +6/−1
- src/Witherable/Lens/Withering.hs +1/−1
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for lens-witherable -## 0.1.0.0 -- YYYY-mm-dd+## 0.1.0.1 -- 2022-11-14++* Add support for older versions of dependencies with cabal flags and CPP.++## 0.1.0.0 -- 2022-11-14 * First version. Released on an unsuspecting world.
lens-witherable.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: lens-witherable-version: 0.1.0.0+version: 0.1.0.1 synopsis: lens-compatible tools for working with witherable copyright: Copyright (C) 2021-2022 Carl Howells license: MIT@@ -17,11 +17,23 @@ extra-source-files: CHANGELOG.md, README.md + library default-language: Haskell2010 exposed-modules: Witherable.Lens, Witherable.Lens.Withering-- build-depends: base >=4.9 && <5,- witherable >= 0.4 && < 0.5 hs-source-dirs: src++ if flag(top-level-witherable)+ cpp-options: -DTOP_LEVEL_WITHERABLE+ build-depends: witherable >= 0.4 && < 0.5,+ base >=4.9 && <5,+ else+ build-depends: witherable >= 0 && < 0.5,+ base >=4.8 && <4.16+++flag top-level-witherable+ description: Import Witherable instead of Data.Witherable+ default: True+ manual: False
src/Witherable/Lens.hs view
@@ -1,7 +1,8 @@+{-# Language CPP #-} {-| Module : Witherable.Lens Description : Tools for using the Witherable interface with lens-Copyright : (c) Carl Howells, 2021+Copyright : (c) Carl Howells, 2021-2022 License : MIT Maintainer : chowells79@gmail.com @@ -11,7 +12,11 @@ import Data.Functor.Identity (Identity(runIdentity)) +#ifdef TOP_LEVEL_WITHERABLE import Witherable (Witherable(wither))+#else+import Data.Witherable (Witherable(wither))+#endif import Witherable.Lens.Withering
src/Witherable/Lens/Withering.hs view
@@ -3,7 +3,7 @@ {-| Module : Witherable.Lens.Withering Description : MaybeT replacement type-Copyright : (c) Carl Howells, 2021+Copyright : (c) Carl Howells, 2021-2022 License : MIT Maintainer : chowells79@gmail.com