diff options
| author | Omni Worker <bot@omni.agent> | 2025-11-21 05:28:47 -0500 |
|---|---|---|
| committer | Omni Worker <bot@omni.agent> | 2025-11-21 05:28:47 -0500 |
| commit | 87d20671b9206187eb2a60a05a3987876c1785d6 (patch) | |
| tree | 62537259e2ffa0fcbc4ec24fa46bdb60eba55a83 /Omni/Agent | |
| parent | ea334ab17a75683ceb8b844d8ec011b342b199c9 (diff) | |
Fix lint issue
Diffstat (limited to 'Omni/Agent')
| -rw-r--r-- | Omni/Agent/Core.hs | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/Omni/Agent/Core.hs b/Omni/Agent/Core.hs index 394b357..2d09e39 100644 --- a/Omni/Agent/Core.hs +++ b/Omni/Agent/Core.hs @@ -11,22 +11,27 @@ import Data.Aeson (FromJSON, ToJSON) data WorkerStatus = Idle | Syncing - | Working Text -- ^ Task ID - | Submitting Text -- ^ Task ID - | Error Text -- ^ Error message + | -- | Task ID + Working Text + | -- | Task ID + Submitting Text + | -- | Error message + Error Text deriving (Show, Eq, Generic) instance ToJSON WorkerStatus + instance FromJSON WorkerStatus -- | Representation of a worker agent data Worker = Worker - { workerName :: Text - , workerPid :: Maybe Int - , workerStatus :: WorkerStatus - , workerPath :: FilePath + { workerName :: Text, + workerPid :: Maybe Int, + workerStatus :: WorkerStatus, + workerPath :: FilePath } deriving (Show, Eq, Generic) instance ToJSON Worker + instance FromJSON Worker |
