purescript-protobuf
purescript-protobuf copied to clipboard
Don't generate unparseable files for services
syntax = "proto3";
package whatever;
import "should/not/matter.proto";
service SomeService {
rpc SomeRPC(SomeRequest) returns (SomeResponse) {}
}
A file somewhat like the above leads to a file that looks like this:
module Whatever.Service
(
)
where
import Protobuf.Internal.Prelude
import Protobuf.Internal.Prelude as Prelude
-- some imports...
The PureScript parser doesn't like empty export lists like that. Ideally of course there'd be some RPC definition in the result, but maybe something non-broken (no parens for empty export lists?) would be a good start?
That should be fixed, thanks for the bug report.