fxpak 0.1.1 → 0.1.2
raw patch · 3 files changed
+9/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ System.Hardware.FXPak: with :: FilePath -> (FXPak -> IO a) -> IO a
Files
- CHANGELOG.md +4/−0
- fxpak.cabal +1/−1
- src/System/Hardware/FXPak.hs +4/−1
CHANGELOG.md view
@@ -14,3 +14,7 @@ ## 0.1.1 -- 2021-04-06 * Tested against ByteString 0.10, relaxed dependency constraint++## 0.1.2 -- 2021-05-26++* Added `with` as a wrapper for Serialport.withSerial
fxpak.cabal view
@@ -1,5 +1,5 @@ name: fxpak-version: 0.1.1+version: 0.1.2 synopsis: Interface to the FXPak/FXPak Pro USB interface description: Wraps Serial interaction with FXPak/FXPak Pro devices homepage: https://github.com/wuest/fxpak
src/System/Hardware/FXPak.hs view
@@ -20,7 +20,7 @@ , Packet, Opcode(..), Context(..), Arguments(..) , FI.AddressGet(..), FI.AddressSet(..) , FI.Flag(..), Flags- , open, packet, send+ , open, with, packet, send ) where import Prelude@@ -175,6 +175,9 @@ -- | Open a given serial device as an FXPak open :: FilePath -> IO FXPak open = flip Serial.openSerial Serial.defaultSerialSettings++with :: FilePath -> (FXPak -> IO a) -> IO a+with = flip Serial.withSerial Serial.defaultSerialSettings -- | Encode a packet to send to an FXPak, preventing encoding of invalid packets packet :: (FI.ValidPacket c o a ~ 'True) => Context (FI.Context' c) -> Opcode (FI.Opcode' o) -> Flags -> Arguments (FI.Arguments' a) -> Packet