packages feed

lens-labels 0.1.0.1 → 0.1.0.2

raw patch · 3 files changed

+24/−2 lines, 3 filesdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base

API changes (from Hackage documentation)

Files

+ Changelog.md view
@@ -0,0 +1,14 @@+# Changelog for `lens-labels`++## Unreleased changes++## v0.1.0.2+- Bump the dependency on `base` to support `ghc-8.2.1`.+- Build against the new API of `GHC.OverloadedLabels` on newer versions of+  GHC.++## v0.1.0.1+- Make the build `-Wall`-clean.++## v0.1.0.0+- Initial release.
lens-labels.cabal view
@@ -1,5 +1,5 @@ name:                lens-labels-version:             0.1.0.1+version:             0.1.0.2 synopsis:            Integration of lenses with OverloadedLabels. description:         Provides a framework to integrate lenses with GHC's                      OverloadedLabels extension.@@ -12,10 +12,11 @@ category:            Data build-type:          Simple cabal-version:       >=1.10+extra-source-files:  Changelog.md  library   exposed-modules:     Lens.Labels-  build-depends:       base >= 4.8 && < 4.10+  build-depends:       base >= 4.8 && < 4.11                      , ghc-prim >=0.4 && <0.6   hs-source-dirs:      src   default-language:    Haskell2010
src/Lens/Labels.hs view
@@ -22,6 +22,9 @@ {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE UndecidableInstances #-}+#if __GLASGOW_HASKELL__ >= 802+{-# LANGUAGE ScopedTypeVariables #-}+#endif module Lens.Labels (     -- * Lenses     LensFn(..),@@ -81,7 +84,11 @@ instance     (p ~ (a -> f b), q ~ (s -> f t), HasLens x f s t a b)     => IsLabel x (LensFn p q) where+#if __GLASGOW_HASKELL__ >= 802+    fromLabel = LensFn $ lensOf (proxy# :: Proxy# x)+#else     fromLabel p = LensFn $ lensOf p+#endif #endif  type ASetter s t a b = LensLike Identity s t a b