packages feed

Win32-notify 0.3.0.1 → 0.3.0.2

raw patch · 2 files changed

+10/−4 lines, 2 filesnew-uploader

Files

Win32-notify.cabal view
@@ -1,25 +1,29 @@ name:           Win32-notify
-version:        0.3.0.1
+version:        0.3.0.2
 license:        BSD3
 license-file:   LICENSE
 author:         Niklas Broberg
 copyright:      Niklas Broberg, 2008; Mark Dittmer, 2012
-maintainer:     Mark Dittmer <mark.s.dittmer@gmail.com>
+maintainer:     Pepe Iborra <pepeiborra@gmail.com>
 category:       System
 synopsis:       A binding to part of the Win32 library for file notification
 description:    A binding to part of the Win32 library for file notification
 build-type:     Simple
 cabal-version:  >= 1.8
 
+Source-repository head
+    type:     git
+    location: https://github.com/haskell-fswatch/win32-notify
+
 library
   build-depends:   base >= 4.3.1.0 && < 5, Win32, directory, containers >= 0.4.0.0
-  ghc-options:     -Wall -fno-warn-incomplete-patterns -fno-warn-unused-imports -threaded
+  ghc-options:     -Wall -fno-warn-incomplete-patterns -fno-warn-unused-imports 
   exposed-modules: System.Win32.Notify
   other-modules:   System.Win32.FileNotify
   hs-source-dirs:  src
 
 executable simple
-  Buildable: False
+  Buildable:     False
   main-is:       examples/simple/simple.hs
   build-depends: base >= 4.3.1.0 && < 5, directory, Win32-notify >= 0.1
   ghc-options:   -Wall -threaded
src/System/Win32/FileNotify.hsc view
@@ -62,10 +62,12 @@ -- Defined in System.Win32.File, but with too few cases:
 -- type AccessMode = UINT
 
+#if !(MIN_VERSION_Win32(2,4,0))
 #{enum AccessMode,
  , fILE_LIST_DIRECTORY = FILE_LIST_DIRECTORY
  }
 -- there are many more cases but I only need this one.
+#endif
 
 type FileAction = DWORD