Skip to content

Commit

Permalink
Release 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
georgefst committed Sep 1, 2023
1 parent 0f907f8 commit dafed96
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion evdev-streamly/evdev-streamly.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ library
rawfilepath ^>= {1.0, 1.1},
streamly ^>= 0.8,
streamly-fsnotify ^>= 1.1.1,
unix ^>= 2.7.2,
unix ^>= 2.8,
default-language: GHC2021
default-extensions:
LambdaCase
Expand Down
3 changes: 3 additions & 0 deletions evdev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions evdev/evdev.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 3.0
name: evdev
version: 2.3.0
version: 2.3.1.1
author: George Thomas
maintainer: George Thomas
description: Provides access to the Linux event device interface.
Expand Down Expand Up @@ -28,7 +28,7 @@ common common
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
Expand Down
2 changes: 1 addition & 1 deletion evdev/src/Evdev.hs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ toCTimeVal t = LL.CTimeVal n (round $ f * 1_000_000)
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 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'.
Expand Down

0 comments on commit dafed96

Please sign in to comment.