From 1f9c99b434467000a9aae678ec67890e9a1e540f Mon Sep 17 00:00:00 2001 From: Adithya Kumar Date: Thu, 17 Oct 2024 03:13:19 +0530 Subject: [PATCH] Add deprecation message on all the event based modules --- src/Streamly/Internal/FileSystem/Event.hs | 2 ++ src/Streamly/Internal/FileSystem/Event/Darwin.hs | 1 + src/Streamly/Internal/FileSystem/Event/Linux.hs | 1 + src/Streamly/Internal/FileSystem/Event/Windows.hs | 1 + 4 files changed, 5 insertions(+) diff --git a/src/Streamly/Internal/FileSystem/Event.hs b/src/Streamly/Internal/FileSystem/Event.hs index d161977a81..3745d83716 100644 --- a/src/Streamly/Internal/FileSystem/Event.hs +++ b/src/Streamly/Internal/FileSystem/Event.hs @@ -23,7 +23,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