Copyright | (c) Andreas Ländle 2024 |
---|---|
License | BSD-3 |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Types representing states and state changes of a WLED device.
Synopsis
- data State t f f' = State {}
- data Nightlight t f = Nightlight {
- nightlightOn :: Wear t f Bool
- nightlightDur :: Wear t f Int
- nightlightMode :: Wear t f Int
- nightlightTbri :: Wear t f Int
- nightlightRem :: Wear t f Int
- data Segment t f = Segment {
- segmentId :: Wear t f Int
- segmentStart :: Wear t f Int
- segmentStop :: Wear t f Int
- segmentLen :: Wear t f Int
- segmentGrp :: Wear t f Int
- segmentSpc :: Wear t f Int
- segmentOf :: Wear t f Int
- segmentOn :: Wear t f Bool
- segmentFrz :: Wear t f Bool
- segmentBri :: Wear t f Int
- segmentCct :: Wear t f Int
- segmentSet :: Wear t f Int
- segmentCol :: Wear t f [[Int]]
- segmentFx :: Wear t f Int
- segmentSx :: Wear t f Int
- segmentIx :: Wear t f Int
- segmentPal :: Wear t f Int
- segmentC1 :: Wear t f Int
- segmentC2 :: Wear t f Int
- segmentC3 :: Wear t f Int
- segmentSel :: Wear t f Bool
- segmentRev :: Wear t f Bool
- segmentMi :: Wear t f Bool
- segmentO1 :: Wear t f Bool
- segmentO2 :: Wear t f Bool
- segmentO3 :: Wear t f Bool
- segmentSi :: Wear t f Int
- segmentM12 :: Wear t f Int
- type StateComplete = State Bare Identity Identity
- type StatePatch = State Covered Maybe Maybe
- type NightlightComplete = Nightlight Bare Identity
- type NightlightPatch = Nightlight Covered Maybe
- type SegmentComplete = Segment Bare Identity
- type SegmentPatch = Segment Covered Maybe
- append :: StateComplete -> StatePatch -> StateComplete
- diff :: StateComplete -> StateComplete -> StatePatch
Documentation
State data type.
Instances
data Nightlight t f Source #
Nightlight data type.
Nightlight | |
|
Instances
Segment data type.
Segment | |
|
Instances
type NightlightComplete = Nightlight Bare Identity Source #
type NightlightPatch = Nightlight Covered Maybe Source #
append :: StateComplete -> StatePatch -> StateComplete Source #
diff :: StateComplete -> StateComplete -> StatePatch Source #