packages feed

arduino-copilot 1.5.0 → 1.5.1

raw patch · 3 files changed

+8/−2 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

+ Copilot.Arduino: infixr 4 ||
- Copilot.Arduino: infixr 1 =<<
+ Copilot.Arduino: infixr 1 ++
- Copilot.Arduino: pullup :: Pin t -> Sketch ()
+ Copilot.Arduino: pullup :: IsDigitalIOPin t => Pin t -> Sketch ()

Files

CHANGELOG view
@@ -1,3 +1,9 @@+arduino-copilot (1.5.1) unstable; urgency=medium++  * Fix type of pullup, limiting it to digital IO pins.++ -- Joey Hess <id@joeyh.name>  Fri, 28 Feb 2020 23:15:39 -0400+ arduino-copilot (1.5.0) unstable; urgency=medium    * Added whenB and scheduleB sketch combinators.
arduino-copilot.cabal view
@@ -1,5 +1,5 @@ Name: arduino-copilot-Version: 1.5.0+Version: 1.5.1 Cabal-Version: >= 1.8 License: BSD3 Maintainer: Joey Hess <id@joeyh.name>
src/Copilot/Arduino.hs view
@@ -195,7 +195,7 @@ -- will be read from the pin. -- -- > pullup pin12-pullup :: Pin t -> Sketch ()+pullup :: IsDigitalIOPin t => Pin t -> Sketch () pullup (Pin p) = tell [(\_ -> return (), \_ -> f)]   where 	f = mempty