hpath 0.9.1 → 0.9.2
raw patch · 4 files changed
+20/−5 lines, 4 filesdep ~basedep ~bytestringPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, bytestring
API changes (from Hackage documentation)
Files
- CHANGELOG +4/−0
- hpath.cabal +5/−5
- src/HPath.hs +6/−0
- src/HPath/IO.hs +5/−0
CHANGELOG view
@@ -1,3 +1,7 @@+0.9.2+ * fix build with ghc-7.6+ * raise required bytestring version+ * Tighten base bound to prevent building before GHC 7.6 (by George Wilson) 0.9.1 * fix build with ghc-7.8 and 7.10 0.9.0
hpath.cabal view
@@ -1,5 +1,5 @@ name: hpath-version: 0.9.1+version: 0.9.2 synopsis: Support for well-typed paths description: Support for well-typed paths, utilizing ByteString under the hood. license: BSD3@@ -35,9 +35,9 @@ System.Posix.FD, System.Posix.FilePath other-modules: HPath.Internal- build-depends: base >= 4.2 && <5+ build-depends: base >= 4.6 && <5 , IfElse- , bytestring >= 0.9.2.0+ , bytestring >= 0.10.0.0 , deepseq , exceptions , hspec@@ -71,7 +71,7 @@ ghc-options: -threaded main-is: doctests-posix.hs build-depends: base,- bytestring,+ bytestring >= 0.10.0.0, unix, hpath, doctest >= 0.8,@@ -118,7 +118,7 @@ Build-Depends: base , HUnit , IfElse- , bytestring+ , bytestring >= 0.10.0.0 , hpath , hspec >= 1.3 , process
src/HPath.hs view
@@ -13,7 +13,9 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE EmptyDataDecls #-}+#if __GLASGOW_HASKELL__ >= 708 {-# LANGUAGE PatternSynonyms #-}+#endif module HPath (@@ -25,8 +27,10 @@ ,PathParseException ,PathException ,RelC+#if __GLASGOW_HASKELL__ >= 708 -- * PatternSynonyms/ViewPatterns ,pattern Path+#endif -- * Path Parsing ,parseAbs ,parseFn@@ -101,7 +105,9 @@ #if __GLASGOW_HASKELL__ >= 710 pattern Path :: ByteString -> Path a #endif+#if __GLASGOW_HASKELL__ >= 708 pattern Path x <- (MkPath x)+#endif -------------------------------------------------------------------------------- -- Path Parsers
src/HPath/IO.hs view
@@ -33,6 +33,7 @@ -- For other functions (like `copyFile`), the behavior on these file types is -- unreliable/unsafe. Check the documentation of those functions for details. +{-# LANGUAGE CPP #-} {-# LANGUAGE PackageImports #-} {-# LANGUAGE OverloadedStrings #-} @@ -107,7 +108,11 @@ ( ByteString )+#if MIN_VERSION_bytestring(0,10,2) import Data.ByteString.Builder+#else+import Data.ByteString.Lazy.Builder+#endif ( Builder , byteString