packages feed

evdev 2.3.0 → 2.3.1

raw patch · 3 files changed

+7/−3 lines, 3 filesdep ~unixPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: unix

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,8 @@ # Revision history for evdev +## 2.3.1 -- 01-09-2023+* Migrate to `unix-2.8`.+ ## 2.3.0 -- 01-09-2023 * Add `deviceOptsFromEvents` for more easily creating UInput devices with desired capabilities. * Add some extra `Read` instances.
evdev.cabal view
@@ -1,6 +1,6 @@ cabal-version:       3.0 name:                evdev-version:             2.3.0+version:             2.3.1 author:              George Thomas maintainer:          George Thomas description:         Provides access to the Linux event device interface.@@ -28,7 +28,7 @@         mtl ^>= {2.2, 2.3},         rawfilepath ^>= {1.0, 1.1},         time ^>= {1.9.3, 1.10, 1.11, 1.12, 1.13},-        unix ^>= 2.7.2,+        unix ^>= 2.8,     default-language: GHC2021     default-extensions:         BlockArguments
src/Evdev.hs view
@@ -205,7 +205,8 @@ Use 'newDeviceFromFd' if you need more control over how the device is created. -} newDevice :: RawFilePath -> IO Device-newDevice path = newDeviceFromFd =<< openFd path ReadWrite Nothing defaultFileFlags+-- newDevice path = newDeviceFromFd =<< openFd path ReadWrite Nothing defaultFileFlags+newDevice path = newDeviceFromFd =<< openFd path ReadWrite defaultFileFlags  {- | Generalisation of 'newDevice', in case one needs control over the file descriptor, e.g. in order to set a particular 'System.Posix.FileMode', 'System.Posix.OpenMode', or 'System.Posix.OpenFileFlags'.