Define exposed module under a single condition

Otherwise hackage rejects the package.
This commit is contained in:
Harendra Kumar 2021-12-06 12:51:47 +05:30
parent 5663dd8e7c
commit 3f72f58245

View File

@ -318,7 +318,6 @@ library
if os(windows)
c-sources: src/Streamly/Internal/Data/Time/Clock/Windows.c
exposed-modules: Streamly.Internal.FileSystem.Event.Windows
, Streamly.Internal.FileSystem.Event
build-depends: Win32 >= 2.6 && < 2.13
if os(darwin)
@ -328,11 +327,12 @@ library
, src/Streamly/Internal/FileSystem/Event/Darwin.m
exposed-modules:
Streamly.Internal.FileSystem.Event.Darwin
, Streamly.Internal.FileSystem.Event
if os(linux)
exposed-modules: Streamly.Internal.FileSystem.Event.Linux
, Streamly.Internal.FileSystem.Event
if os(linux) || os(darwin) || os(windows)
exposed-modules: Streamly.Internal.FileSystem.Event
hs-source-dirs: src
other-modules: