Skip to content

Commit

Permalink
Generated code no longer depends on grpc-haskell-core (#58)
Browse files Browse the repository at this point in the history
Fixes #53

The motivation for this change is so that generated code does not need to
depend on the `grpc-haskell-core` package

This removes the unnecessary `Network.GRPC.HighLevel.Server.Unregistered`
import from the generated code since everything provided by the low-level
library is already re-exported by the high-level library
  • Loading branch information
Gabriella439 authored Mar 30, 2018
1 parent 8eabe74 commit 57f42f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Proto3/Suite/DotProto/Generate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ defaultImports usesGrpc =
(Just (True, [ importSym "serverLoop" ]))
, importDecl_ networkGrpcHighLevelServerUnregM False (Just grpcNS)
(Just (False, [ importSym "serverLoop" ]))
, importDecl_ networkGrpcLowLevelCallM False (Just grpcNS) Nothing ]
]
else []
where preludeM = Module "Prelude"
dataProtobufWireDotProtoM = Module "Proto3.Suite.DotProto"
Expand All @@ -1650,7 +1650,6 @@ defaultImports usesGrpc =
networkGrpcHighLevelServerM = Module "Network.GRPC.HighLevel.Server"
networkGrpcHighLevelClientM = Module "Network.GRPC.HighLevel.Client"
networkGrpcHighLevelServerUnregM = Module "Network.GRPC.HighLevel.Server.Unregistered"
networkGrpcLowLevelCallM = Module "Network.GRPC.LowLevel.Call"

grpcNS = Module "HsGRPC"
jsonpbNS = Module "HsJSONPB"
Expand Down

0 comments on commit 57f42f1

Please sign in to comment.