From 3be0223cee7395410915a127eba3acae5ff0b2f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CB=8Cbod=CA=B2=C9=AA=CB=88=C9=A1r=CA=B2im?= <andrew.lelechenko@gmail.com> Date: Thu, 4 Aug 2022 05:02:43 +0100 Subject: [PATCH] Final touches for 2.8 (#243) * Allow base-4.17 for GHC 9.4; restrict filepath < 1.5 * Fix 'marked as Trustworthy but has been inferred as safe' warning --- System/Posix/Resource.hsc | 4 ++++ unix.cabal | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/System/Posix/Resource.hsc b/System/Posix/Resource.hsc index 8618ba7..ffd2c35 100644 --- a/System/Posix/Resource.hsc +++ b/System/Posix/Resource.hsc @@ -1,5 +1,9 @@ {-# LANGUAGE CApiFFI #-} +#if __GLASGOW_HASKELL__ >= 905 {-# LANGUAGE Trustworthy #-} +#else +{-# LANGUAGE Safe #-} +#endif ----------------------------------------------------------------------------- -- | diff --git a/unix.cabal b/unix.cabal index 28d23ba..9c41ca9 100644 --- a/unix.cabal +++ b/unix.cabal @@ -11,8 +11,9 @@ bug-reports: https://github.com/haskell/unix/issues synopsis: POSIX functionality category: System build-type: Configure -tested-with: GHC==9.0.1, - GHC==8.10.4, +tested-with: GHC==9.2.4, + GHC==9.0.2, + GHC==8.10.7, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, @@ -68,9 +69,9 @@ library buildable: False build-depends: - base >= 4.10 && < 4.17, + base >= 4.10 && < 4.18, bytestring >= 0.9.2 && < 0.12, - filepath >= 1.4.100.0, + filepath >= 1.4.100.0 && < 1.5, time >= 1.2 && < 1.13 exposed-modules: -- GitLab