Continue work on terminals
This commit is contained in:
@@ -1,19 +1,22 @@
|
||||
{-# LANGUAGE DeriveGeneric #-}
|
||||
{-# LANGUAGE DeriveAnyClass #-}
|
||||
{-# LANGUAGE DeriveGeneric #-}
|
||||
{-# LANGUAGE StrictData #-}
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
module Dodge.Data.Machine.Sensor.Type
|
||||
where
|
||||
|
||||
module Dodge.Data.Machine.Sensor.Type where
|
||||
|
||||
import Data.Aeson
|
||||
import Data.Aeson.TH
|
||||
|
||||
data SensorType
|
||||
data SensorType
|
||||
= LaserSensor
|
||||
| ElectricSensor
|
||||
| ThermalSensor
|
||||
| PhysicalSensor
|
||||
deriving (Eq,Ord,Show,Read,Bounded,Enum)
|
||||
deriving (Eq, Ord, Show, Read, Bounded, Enum)
|
||||
|
||||
deriveJSON defaultOptions ''SensorType
|
||||
|
||||
instance ToJSONKey SensorType
|
||||
|
||||
instance FromJSONKey SensorType
|
||||
|
||||
Reference in New Issue
Block a user