Add more deriving clauses

This commit is contained in:
2022-07-25 09:26:41 +01:00
parent c3a5b9d5be
commit d62e14cdb5
8 changed files with 22 additions and 13 deletions
+5 -1
View File
@@ -10,6 +10,7 @@ import Color
data ButtonDraw = DefaultDrawButton Color
| DefaultDrawSwitch Color Color
| DrawNoButton
deriving (Eq,Ord,Show,Read)
data ButtonEvent = ButtonDoNothing
| ButtonPress
{_bpState :: ButtonState
@@ -32,6 +33,7 @@ data ButtonEvent = ButtonDoNothing
,_boffEff :: WdWd
}
| ButtonAccessTerminal
deriving (Eq,Ord,Show,Read)
data Button = Button
{ _btPict :: ButtonDraw --Button -> SPic
@@ -45,6 +47,8 @@ data Button = Button
, _btName :: String
, _btColor :: Color
}
deriving (Eq,Ord,Show,Read)
data ButtonState = BtOn | BtOff | BtNoLabel
deriving (Eq, Show)
deriving (Eq,Ord,Show,Read)
makeLenses ''Button
makeLenses ''ButtonEvent