packages feed

lens 3.8.6 → 3.8.7

raw patch · 3 files changed

+12/−1 lines, 3 files

Files

CHANGELOG.markdown view
@@ -1,3 +1,7 @@+3.8.7 [maintenance release]+-----+* Fixed dependencies to build with `base < 4.4`.+ 3.8.6 [maintenance release] ----- * Fixed an issue with `DefaultSignatures` being used outside of the appropriate `#ifdef` that caused compilation issues on GHC 7.0.2.
lens.cabal view
@@ -1,6 +1,6 @@ name:          lens category:      Data, Lenses-version:       3.8.6+version:       3.8.7 license:       BSD3 cabal-version: >= 1.8 license-file:  LICENSE
src/Control/Lens/Internal/ByteString.hs view
@@ -3,6 +3,9 @@ {-# LANGUAGE BangPatterns #-} {-# LANGUAGE PatternGuards #-} {-# LANGUAGE FlexibleContexts #-}+#ifndef MIN_VERSION_base+#define MIN_VERSION_base(x,y,z) 1+#endif ----------------------------------------------------------------------------- -- | -- Module      :  Data.ByteString.Strict.Lens@@ -36,8 +39,12 @@ import Data.Word (Word8) import Foreign.Ptr import Foreign.Storable+#ifdef MIN_VERSION_base(4,4,0) import Foreign.ForeignPtr.Safe import Foreign.ForeignPtr.Unsafe+#else+import Foreign.ForeignPtr+#endif import GHC.Base (unsafeChr) import GHC.ForeignPtr (mallocPlainForeignPtrBytes) import GHC.IO (unsafeDupablePerformIO)