summaryrefslogtreecommitdiff
path: root/Omni/Deploy/Caddy.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-12-16 14:14:41 -0500
committerBen Sima <ben@bensima.com>2025-12-16 14:14:41 -0500
commit260b7b83b0ec396bb880038f4c93f977af0056c5 (patch)
treefd6905ac74d0cb366758fd146887629a03c2cf12 /Omni/Deploy/Caddy.hs
parentbf64b25a2106ec04d91b3e8d7ee9e86fe9ff43ab (diff)
Fix hlint errors in Deploy modules
- Systemd: use list comprehension instead of if-then-else - Manifest: use </> operator, replace case with maybe - Deployer: use newtype, use flip removeService - Caddy: use newtype for single-field types
Diffstat (limited to 'Omni/Deploy/Caddy.hs')
-rw-r--r--Omni/Deploy/Caddy.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Omni/Deploy/Caddy.hs b/Omni/Deploy/Caddy.hs
index de73a35..6cedf92 100644
--- a/Omni/Deploy/Caddy.hs
+++ b/Omni/Deploy/Caddy.hs
@@ -53,7 +53,7 @@ instance Aeson.ToJSON Route where
"terminal" .= routeTerminal
]
-data RouteMatch = RouteMatch
+newtype RouteMatch = RouteMatch
{ matchHost :: [Text]
}
deriving (Show, Eq, Generic)
@@ -75,7 +75,7 @@ instance Aeson.ToJSON RouteHandler where
"upstreams" .= handlerUpstreams
]
-data Upstream = Upstream
+newtype Upstream = Upstream
{ upstreamDial :: Text
}
deriving (Show, Eq, Generic)