From 04ee411dae4a080693860d361a5cf02824215ed6 Mon Sep 17 00:00:00 2001 From: Alice Rixte <12593462+AliceRixte@users.noreply.github.com> Date: Mon, 14 Oct 2024 06:57:57 +0200 Subject: [PATCH] Add deprecation message on all the event based modules --- src/Streamly/Internal/FileSystem/Event.hs | 4 ++++ src/Streamly/Internal/FileSystem/Event/Darwin.hs | 1 + src/Streamly/Internal/FileSystem/Event/Linux.hs | 1 + src/Streamly/Internal/FileSystem/Event/Windows.hs | 1 + test/Streamly/Test/FileSystem/Event.hs | 2 ++ test/Streamly/Test/FileSystem/Event/Darwin.hs | 2 ++ test/Streamly/Test/FileSystem/Event/Linux.hs | 2 ++ test/Streamly/Test/FileSystem/Event/Windows.hs | 2 ++ 8 files changed, 15 insertions(+) diff --git a/src/Streamly/Internal/FileSystem/Event.hs b/src/Streamly/Internal/FileSystem/Event.hs index d161977a81..0b5035158b 100644 --- a/src/Streamly/Internal/FileSystem/Event.hs +++ b/src/Streamly/Internal/FileSystem/Event.hs @@ -1,3 +1,5 @@ +{-# OPTIONS_GHC -Wno-deprecations #-} + -- | -- Module : Streamly.FileSystem.Event -- Copyright : (c) 2020 Composewell Technologies @@ -23,7 +25,9 @@ -- XXX Need to ensure that the signatures of the exported APIs are same on all -- platforms. + module Streamly.Internal.FileSystem.Event + {-# DEPRECATED "Use the streamly-fsevents package." #-} ( -- * Creating a Watch diff --git a/src/Streamly/Internal/FileSystem/Event/Darwin.hs b/src/Streamly/Internal/FileSystem/Event/Darwin.hs index 1dbeebfa83..c9b011414d 100644 --- a/src/Streamly/Internal/FileSystem/Event/Darwin.hs +++ b/src/Streamly/Internal/FileSystem/Event/Darwin.hs @@ -87,6 +87,7 @@ #if HAVE_DECL_KFSEVENTSTREAMCREATEFLAGFILEEVENTS module Streamly.Internal.FileSystem.Event.Darwin + {-# DEPRECATED "Use the streamly-fsevents package." #-} ( -- * Creating a Watch diff --git a/src/Streamly/Internal/FileSystem/Event/Linux.hs b/src/Streamly/Internal/FileSystem/Event/Linux.hs index 4771a3e6eb..5c60501e30 100644 --- a/src/Streamly/Internal/FileSystem/Event/Linux.hs +++ b/src/Streamly/Internal/FileSystem/Event/Linux.hs @@ -59,6 +59,7 @@ #if HAVE_DECL_IN_EXCL_UNLINK module Streamly.Internal.FileSystem.Event.Linux + {-# DEPRECATED "Use the streamly-fsevents package." #-} ( -- * Subscribing to events diff --git a/src/Streamly/Internal/FileSystem/Event/Windows.hs b/src/Streamly/Internal/FileSystem/Event/Windows.hs index c9ea2a1195..25fc921fab 100644 --- a/src/Streamly/Internal/FileSystem/Event/Windows.hs +++ b/src/Streamly/Internal/FileSystem/Event/Windows.hs @@ -43,6 +43,7 @@ -- * Minimum supported server: Windows Server 2003 [desktop apps | UWP apps module Streamly.Internal.FileSystem.Event.Windows + {-# DEPRECATED "Use the streamly-fsevents package." #-} ( -- * Subscribing to events diff --git a/test/Streamly/Test/FileSystem/Event.hs b/test/Streamly/Test/FileSystem/Event.hs index d13ab0b56c..6ede989650 100644 --- a/test/Streamly/Test/FileSystem/Event.hs +++ b/test/Streamly/Test/FileSystem/Event.hs @@ -1,3 +1,5 @@ +{-# OPTIONS_GHC -Wno-deprecations #-} + -- | -- Module : Streamly.Test.FileSystem.Event -- Copyright : (c) 2021 Composewell Technologies diff --git a/test/Streamly/Test/FileSystem/Event/Darwin.hs b/test/Streamly/Test/FileSystem/Event/Darwin.hs index 29fa65ccbb..d99b394c1c 100644 --- a/test/Streamly/Test/FileSystem/Event/Darwin.hs +++ b/test/Streamly/Test/FileSystem/Event/Darwin.hs @@ -1,3 +1,5 @@ +{-# OPTIONS_GHC -Wno-deprecations #-} + -- | -- Module : Streamly.Test.FileSystem.Event.Darwin -- Copyright : (c) 2020 Composewell Technologies diff --git a/test/Streamly/Test/FileSystem/Event/Linux.hs b/test/Streamly/Test/FileSystem/Event/Linux.hs index 1dd3d88b00..b1003bc639 100644 --- a/test/Streamly/Test/FileSystem/Event/Linux.hs +++ b/test/Streamly/Test/FileSystem/Event/Linux.hs @@ -1,3 +1,5 @@ +{-# OPTIONS_GHC -Wno-deprecations #-} + -- | -- Module : Streamly.Test.FileSystem.Event.Linux -- Copyright : (c) 2020 Composewell Technologies diff --git a/test/Streamly/Test/FileSystem/Event/Windows.hs b/test/Streamly/Test/FileSystem/Event/Windows.hs index 10319ba0d3..4e8172c7e9 100644 --- a/test/Streamly/Test/FileSystem/Event/Windows.hs +++ b/test/Streamly/Test/FileSystem/Event/Windows.hs @@ -1,3 +1,5 @@ +{-# OPTIONS_GHC -Wno-deprecations #-} + -- | -- Module : Streamly.Test.FileSystem.Event.Windows -- Copyright : (c) 2020 Composewell Technologies