georgefst / lifx-lan

https://hackage.haskell.org/package/lifx-lan
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Boolean power #15

Open georgefst opened 3 years ago

georgefst commented 3 years ago

Should we just use Bools for the power fields in LightState and StatePower, treating any non-zero value as True?

I should check the API documentation to see if there are ever any use cases for intermediate values.

georgefst commented 2 years ago

OTOH, the Rust lifx-core crate recently switched the other way: from booleans to ints. I should investigate why they took that decision.