From b0f0c9416c36a1a5997667de7fccf36febcfb2ec Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Wed, 7 May 2025 15:32:11 +0800 Subject: [PATCH 1/2] Release 2.8.7.0 --- changelog.md | 6 ++++++ unix.cabal | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 9cdbc05..9799b41 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog for [`unix` package](http://hackage.haskell.org/package/unix) +## 2.8.7.0 *May 2025* + + * Add portable support for file open with data caching supressed/eliminated wrt [#322](https://github.com/haskell/unix/issues/322) + * Support for ARM64 Windows + * Use `Base.o_*` instead of raw `{#const O_*}`, fixing a bug in GHC JS + ## 2.8.6.0 *Nov 2024* * add `readDirStreamWith` and `readDirStreamWithPtr` to `System.Posix.Directory.Internals` wrt [#251](https://github.com/haskell/unix/pull/251) diff --git a/unix.cabal b/unix.cabal index ed38f4f..bfd7bee 100644 --- a/unix.cabal +++ b/unix.cabal @@ -1,6 +1,6 @@ cabal-version: 1.12 name: unix -version: 2.8.6.0 +version: 2.8.7.0 -- NOTE: Don't forget to update ./changelog.md license: BSD3 From 8090c2e04c83d0c4d8dc398da34bf525492b50db Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Fri, 9 May 2025 14:02:25 +0800 Subject: [PATCH 2/2] Wiggle --- System/Posix/Fcntl.hsc | 4 ++-- changelog.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/System/Posix/Fcntl.hsc b/System/Posix/Fcntl.hsc index a492fd2..575c834 100644 --- a/System/Posix/Fcntl.hsc +++ b/System/Posix/Fcntl.hsc @@ -131,7 +131,7 @@ fileAllocate _ _ _ = ioError (ioeSetLocation unsupportedOperation -- Use @#if HAVE_O_DIRECT@ CPP guard to detect availability. Use @#include -- "HsUnix.h"@ to bring @HAVE_O_DIRECT@ into scope. -- --- @since 2.8.x.y +-- @since 2.8.7.0 fileGetCaching :: Fd -> IO Bool #if HAVE_O_DIRECT fileGetCaching (Fd fd) = do @@ -162,7 +162,7 @@ fileGetCaching _ = ioError (ioeSetLocation unsupportedOperation "fileGetCaching" -- Use @#include "HsUnix.h"@ to bring @HAVE_O_DIRECT@ and @HAVE_F_NOCACHE@ into -- scope. -- --- @since 2.8.x.y +-- @since 2.8.7.0 fileSetCaching :: Fd -> Bool -> IO () #if HAVE_O_DIRECT fileSetCaching (Fd fd) val = do diff --git a/changelog.md b/changelog.md index 9799b41..55207f6 100644 --- a/changelog.md +++ b/changelog.md @@ -3,7 +3,7 @@ ## 2.8.7.0 *May 2025* * Add portable support for file open with data caching supressed/eliminated wrt [#322](https://github.com/haskell/unix/issues/322) - * Support for ARM64 Windows + * Support for ARM64 Windows when cross-compilation from Linux/Darwin or other unix system is involved * Use `Base.o_*` instead of raw `{#const O_*}`, fixing a bug in GHC JS ## 2.8.6.0 *Nov 2024*