unix-compat 0.7.1 → 0.7.2
raw patch · 3 files changed
+45/−57 lines, 3 filesdep −old-timedep ~basedep ~directorydep ~filepath
Dependencies removed: old-time
Dependency ranges changed: base, directory, filepath, time
Files
- CHANGELOG.md +9/−3
- src/System/PosixCompat/Internal/Time.hs +0/−12
- unix-compat.cabal +36/−42
CHANGELOG.md view
@@ -1,11 +1,17 @@+## Version 0.7.2 (2024-06-25)++- Remove flag `old-time` and drop support for `old-time`.+- Remove support for GHC 7.+- Tested with GHC 8.0 - 9.10.+ ## Version 0.7.1 (2023-12-06) Santa Clause edition -- Add `System.PosixCompat.Process` module, exporting `getProcessID`+- Add `System.PosixCompat.Process` module, exporting `getProcessID`. ## Version 0.7 (2023-03-15) -- Remove `System.PosixCompat.User` module+- Remove `System.PosixCompat.User` module. ## Version 0.6 (2022-05-22) -- Better support for symbolic links+- Better support for symbolic links.
src/System/PosixCompat/Internal/Time.hs view
@@ -10,16 +10,6 @@ ) where import System.Posix.Types (EpochTime)--#ifdef OLD_TIME--import System.Time (ClockTime(TOD), getClockTime)--clockTimeToEpochTime :: ClockTime -> EpochTime-clockTimeToEpochTime (TOD s _) = fromInteger s--#else- import Data.Time.Clock.POSIX (POSIXTime, getPOSIXTime) type ClockTime = POSIXTime@@ -29,5 +19,3 @@ clockTimeToEpochTime :: ClockTime -> EpochTime clockTimeToEpochTime = fromInteger . floor--#endif
unix-compat.cabal view
@@ -1,5 +1,6 @@+cabal-version: >= 1.10 name: unix-compat-version: 0.7.1+version: 0.7.2 synopsis: Portable POSIX-compatibility layer. description: This package provides portable implementations of parts of the unix package. This package re-exports the unix@@ -13,8 +14,21 @@ maintainer: https://github.com/haskell-pkg-janitors category: System build-type: Simple-cabal-version: >= 1.10 +tested-with:+ GHC == 9.10.1+ GHC == 9.8.2+ GHC == 9.6.5+ GHC == 9.4.8+ GHC == 9.2.8+ GHC == 9.0.2+ GHC == 8.10.7+ GHC == 8.8.4+ GHC == 8.6.5+ GHC == 8.4.4+ GHC == 8.2.2+ GHC == 8.0.2+ extra-source-files: CHANGELOG.md @@ -22,15 +36,8 @@ type: git location: https://github.com/haskell-pkg-janitors/unix-compat.git -flag old-time- description: build against old-time package- default: False- Library- default-language: Haskell2010 hs-source-dirs: src- ghc-options: -Wall- build-depends: base == 4.* exposed-modules: System.PosixCompat@@ -42,27 +49,18 @@ System.PosixCompat.Types System.PosixCompat.Unistd + build-depends: base >= 4.9 && < 5+ if os(windows) c-sources: cbits/HsUname.c cbits/mktemp.c extra-libraries: msvcrt- build-depends: Win32 >= 2.5.0.0- build-depends: filepath >= 1.0 && < 1.5-- if flag(old-time)- build-depends: old-time >= 1.0.0.0 && < 1.2.0.0- cpp-options: -DOLD_TIME-- if impl(ghc < 7)- build-depends: directory == 1.0.*- cpp-options: -DDIRECTORY_1_0- else- build-depends: directory == 1.1.*- else- build-depends: time >= 1.0 && < 1.13- build-depends: directory >= 1.3.1 && < 1.4+ build-depends: Win32 >= 2.5.0.0+ build-depends: directory >= 1.3.1 && < 1.4+ build-depends: filepath >= 1.0 && < 1.6+ build-depends: time >= 1.0 && < 1.13 other-modules: System.PosixCompat.Internal.Time@@ -76,11 +74,14 @@ if os(solaris) cc-options: -DSOLARIS -Test-Suite unix-compat-testsuite default-language: Haskell2010+ ghc-options:+ -Wall+ -Wcompat++Test-Suite unix-compat-testsuite type: exitcode-stdio-1.0 hs-source-dirs: tests- ghc-options: -Wall main-is: main.hs other-modules:@@ -105,11 +106,12 @@ build-depends: unix-compat- , base == 4.*+ , base , monad-parallel , hspec , HUnit- , directory+ , directory >= 1.3.1.0+ -- directory-1.3.1.0 adds createFileLink , extra , temporary @@ -120,19 +122,8 @@ -- extra-libraries: msvcrt -- build-depends: Win32 >= 2.5.0.0-- if flag(old-time)- build-depends: old-time >= 1.0.0.0 && < 1.2.0.0- cpp-options: -DOLD_TIME-- if impl(ghc < 7)- build-depends: directory == 1.0.*- cpp-options: -DDIRECTORY_1_0- else- build-depends: directory == 1.1.*- else- build-depends: time >= 1.0 && < 1.13- build-depends: directory >= 1.3.1 && < 1.4+ build-depends: time+ build-depends: directory -- other-modules: -- System.PosixCompat.Internal.Time@@ -146,4 +137,7 @@ if os(solaris) cc-options: -DSOLARIS - build-depends: directory >= 1.3.1 && < 1.4+ default-language: Haskell2010+ ghc-options:+ -Wall+ -Wcompat