packages feed

hxt-cache 9.1.0 → 9.1.0.1

raw patch · 2 files changed

+47/−27 lines, 2 filesdep ~timePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: time

API changes (from Hackage documentation)

Files

hxt-cache.cabal view
@@ -1,10 +1,10 @@ Name:           hxt-cache-Version:        9.1.0+Version:        9.1.0.1 Synopsis:       Cache for HXT XML Documents and other binary data Description:    Extension for caching XML documents and other binary data in cache directory                 of the local filesystem                 .-                Changes from 9.0.2: dependency of old-time changed to time, dependecy of directory changed to >=1.2 to work with ghc-7.6+                Changes from 9.0.2: dependency from old-time changed to time to work with ghc-7.6                 . License:        OtherLicense License-file:   LICENSE@@ -12,10 +12,10 @@ Maintainer:     Uwe Schmidt <uwe@fh-wedel.de> Stability:      Stable Category:       XML-Homepage:       http://www.fh-wedel.de/~si/HXmlToolbox/index.html+Homepage:       https://github.com/UweSchmidt/hxt Copyright:      Copyright (c) 2010 Uwe Schmidt Build-type:     Simple-Cabal-version:  >=1.6+Cabal-version:  >= 1.18  extra-source-files:  test/TestXmlCache.hs@@ -30,8 +30,10 @@  hs-source-dirs: src   ghc-options: -Wall- ghc-prof-options: -auto-all -caf-all+ ghc-prof-options: -caf-all + default-language:  Haskell2010+  build-depends: base       >= 4   && < 5,                 bytestring >= 0.9 && < 1,                 binary     >= 0.5 && < 1,@@ -40,8 +42,14 @@                 directory  >= 1.2 && < 2,                 filepath   >= 1.1 && < 2,                 hxt        >= 9   && < 10,-                old-locale >= 1   && < 2,                 time       >= 1.4 && < 2,                 unix       >= 2.3 && < 3,                 SHA        >= 1.4 && < 2+ if impl(ghc < 7.10)+   build-depends: old-locale >= 1 && < 2,+                  time       <  1.5 ++Source-Repository head+  Type:     git+  Location: git://github.com/UweSchmidt/hxt.git
src/Text/XML/HXT/Arrow/XmlCache.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-} {-# OPTIONS -fno-warn-unused-imports #-}  -- ------------------------------------------------------------@@ -28,30 +29,41 @@     ) where -import Control.DeepSeq-import Control.Concurrent.ResourceTable-import Control.Exception                        ( SomeException , try )+import           Control.Concurrent.ResourceTable+import           Control.DeepSeq+import           Control.Exception                    (SomeException, try) -import Data.Binary-import qualified-       Data.ByteString.Lazy   as B-import Data.Char-import Data.Either-import Data.Maybe-import Data.Digest.Pure.SHA-import Data.Time+import           Data.Binary+import qualified Data.ByteString.Lazy                 as B+import           Data.Char+import           Data.Digest.Pure.SHA+import           Data.Either+import           Data.Maybe+import           Data.Time                            (UTCTime, addUTCTime,+                                                       formatTime,+                                                       getCurrentTime) -import System.FilePath-import System.Directory-import System.IO-import System.Locale-import System.Posix                            ( touchFile )--- import System.Time-import System.IO.Unsafe                        ( unsafePerformIO )+import           System.Directory                     (createDirectoryIfMissing,+                                                       doesFileExist,+                                                       getModificationTime,+                                                       removeFile)+import           System.FilePath                      ((</>))+import           System.IO                            (IOMode (AppendMode),+                                                       hClose, hPutStrLn,+                                                       openBinaryFile)+#if MIN_VERSION_time(1,5,0)+import           Data.Time                            (defaultTimeLocale,+                                                       rfc822DateFormat)+#else+import           System.Locale                        (defaultTimeLocale,+                                                       rfc822DateFormat)+#endif+import           System.IO.Unsafe                     (unsafePerformIO)+import           System.Posix                         (touchFile) -import Text.XML.HXT.Core-import Text.XML.HXT.Arrow.XmlState.TypeDefs-import Text.XML.HXT.Arrow.Binary+import           Text.XML.HXT.Arrow.Binary+import           Text.XML.HXT.Arrow.XmlState.TypeDefs+import           Text.XML.HXT.Core  -- ------------------------------------------------------------