Skip to content

Commit

Permalink
Capitalize "MqttClient", "RemoteClientMethodMap", and "Client"
Browse files Browse the repository at this point in the history
so that when they are incorporated Haskell names they retain
the same capitalization whe built with proto3-suite-0.5.0 as
they did with earlier bersions of proto3-suite.
  • Loading branch information
j6carey committed Jul 8, 2022
1 parent e6d40f3 commit ab569ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Network/GRPC/MQTT/TH/Client.hs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import Turtle (FilePath)
mqttClientFuncs :: Turtle.FilePath -> Batched -> Q [Dec]
mqttClientFuncs fp defaultBatchedStream = fmap concat $
forEachService fp defaultBatchedStream $ \serviceName serviceMethods -> do
clientFuncName <- mkName <$> prefixedMethodName serviceName "mqttClient"
clientFuncName <- mkName <$> prefixedMethodName serviceName "MqttClient"
lift $ clientService clientFuncName (mkName serviceName) [(a, batched) | (a, batched, _, _) <- serviceMethods]

clientService :: Name -> Name -> [(String, Batched)] -> DecsQ
Expand Down
4 changes: 2 additions & 2 deletions src/Network/GRPC/MQTT/TH/RemoteClient.hs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ import Turtle (FilePath)
mqttRemoteClientMethodMap :: Turtle.FilePath -> Batched -> Q [Dec]
mqttRemoteClientMethodMap fp defaultBatchedStream = fmap concat $
forEachService fp defaultBatchedStream $ \serviceName serviceMethods -> do
clientFuncName <- mkName <$> prefixedMethodName serviceName "remoteClientMethodMap"
grpcClientName <- mkName <$> prefixedMethodName serviceName "client"
clientFuncName <- mkName <$> prefixedMethodName serviceName "RemoteClientMethodMap"
grpcClientName <- mkName <$> prefixedMethodName serviceName "Client"
lift $ rcMethodMap clientFuncName grpcClientName serviceMethods

rcMethodMap :: Name -> Name -> [(String, Batched, ExpQ, Name)] -> DecsQ
Expand Down

0 comments on commit ab569ab

Please sign in to comment.