File: fsnotify.cabal

package info (click to toggle)
haskell-fsnotify 0.4.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 184 kB
  • sloc: haskell: 1,260; makefile: 2
file content (148 lines) | stat: -rw-r--r-- 3,624 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.38.0.
--
-- see: https://github.com/sol/hpack

name:           fsnotify
version:        0.4.4.0
synopsis:       Cross platform library for file change notification.
description:    Cross platform library for file creation, modification, and deletion notification. This library builds upon existing libraries for platform-specific Windows, Mac, and Linux filesystem event notification.
category:       Filesystem
homepage:       https://github.com/haskell-fswatch/hfsnotify
author:         Mark Dittmer <mark.s.dittmer@gmail.com>, Niklas Broberg
maintainer:     Tom McLaughlin <tom@codedown.io>
license:        BSD3
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
    CHANGELOG.md
    test/Main.hs

library
  exposed-modules:
      System.FSNotify
      System.FSNotify.Devel
  other-modules:
      System.FSNotify.Find
      System.FSNotify.Listener
      System.FSNotify.Path
      System.FSNotify.Polling
      System.FSNotify.Types
  hs-source-dirs:
      src
  default-extensions:
      ScopedTypeVariables
  ghc-options: -Wall
  build-depends:
      async >=2.0.0.0
    , base >=4.8 && <5
    , bytestring >=0.10.2
    , containers >=0.4
    , directory >=1.3.0.0
    , filepath >=1.3.0.0
    , monad-control >=1.0.0.0
    , safe-exceptions >=0.1.0.0
    , text >=0.11.0 && <2.2
    , time >=1.1
    , unix-compat >=0.2
  default-language: Haskell2010
  if os(linux) || os(windows) || os(darwin) || os(freebsd)
    cpp-options: -DHAVE_NATIVE_WATCHER
  if os(linux) || os(freebsd)
    other-modules:
        System.FSNotify.Linux
        System.FSNotify.Linux.Util
    build-depends:
        unix >=2.7.1.0
  if os(linux) && impl(ghc >= 9.10)
    build-depends:
        hinotify >=0.4.2
  if os(linux) && impl(ghc < 9.10)
    build-depends:
        hinotify >=0.3.9
  if os(windows)
    other-modules:
        System.FSNotify.Win32
        System.Win32.FileNotify
        System.Win32.Notify
    hs-source-dirs:
        win-src
    build-depends:
        Win32
  if os(darwin)
    other-modules:
        System.FSNotify.OSX
    build-depends:
        hfsevents >=0.1.8
  if os(freebsd)
    build-depends:
        hinotify >=0.4.1

executable example
  main-is: Main.hs
  other-modules:
      Paths_fsnotify
  hs-source-dirs:
      example
  default-extensions:
      ScopedTypeVariables
  ghc-options: -Wall
  build-depends:
      base
    , directory
    , exceptions
    , filepath
    , fsnotify
    , monad-logger
    , random
    , retry
    , safe-exceptions
    , string-interpolate
    , temporary
    , unix-compat
    , unliftio
  default-language: Haskell2010
  if os(linux) || os(windows) || os(darwin) || os(freebsd)
    cpp-options: -DHAVE_NATIVE_WATCHER
  if !arch(wasm32)
    ghc-options: -threaded

test-suite tests
  type: exitcode-stdio-1.0
  main-is: Main.hs
  other-modules:
      FSNotify.Test.EventTests
      FSNotify.Test.Util
      Paths_fsnotify
  hs-source-dirs:
      test
  default-extensions:
      ScopedTypeVariables
  ghc-options: -threaded -Wall
  build-depends:
      async >=2
    , base >=4.3.1.0
    , directory
    , exceptions
    , filepath
    , fsnotify
    , monad-logger
    , random
    , retry
    , safe-exceptions
    , string-interpolate
    , temporary
    , unix-compat
    , unliftio >=0.2.20
  default-language: Haskell2010
  if os(linux) || os(windows) || os(darwin) || os(freebsd)
    cpp-options: -DHAVE_NATIVE_WATCHER
  if os(windows)
    build-depends:
        Win32
      , sandwich >=0.1.1.1
  else
    build-depends:
        sandwich