summaryrefslogtreecommitdiff
path: root/fig-bus/main
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-05-26 04:43:38 -0400
committerLLLL Colonq <llll@colonq>2025-05-26 04:45:07 -0400
commit1f2e453d0c9f8412b9032cb4e655713ecdcf1fa3 (patch)
treec2e19550aeec4c092dceefb37a85497a4b90b485 /fig-bus/main
parentb5003a97d3f02b7c8cb5e63468b781d8d849264d (diff)
web: Refactor major style
Diffstat (limited to 'fig-bus/main')
-rw-r--r--fig-bus/main/Main.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/fig-bus/main/Main.hs b/fig-bus/main/Main.hs
index bf5c170..addb7dd 100644
--- a/fig-bus/main/Main.hs
+++ b/fig-bus/main/Main.hs
@@ -4,14 +4,14 @@ import Fig.Prelude
import Options.Applicative
-import qualified Fig.Bus.SExp as SExp
+import qualified Fig.Bus.SExpr as SExpr
import qualified Fig.Bus.Binary as Binary
-data Command = SExp | Binary
+data Command = SExpr | Binary
parseCommand :: Parser Command
parseCommand = subparser $ mconcat
- [ command "sexp" $ info (pure SExp) (progDesc "Launch the s-expression bus")
+ [ command "sexp" $ info (pure SExpr) (progDesc "Launch the s-expression bus")
, command "binary" $ info (pure Binary) (progDesc "Launch the binary bus")
]
@@ -34,5 +34,5 @@ main = do
<> header "fig-bus - a pub/sub message bus"
)
case opts.cmd of
- SExp -> SExp.main (Just opts.host, opts.port)
+ SExpr -> SExpr.main (Just opts.host, opts.port)
Binary -> Binary.main (Just opts.host, opts.port)