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