Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated code compiles with warning #73

Open
romand opened this issue Sep 26, 2018 · 0 comments
Open

Generated code compiles with warning #73

romand opened this issue Sep 26, 2018 · 0 comments

Comments

@romand
Copy link

romand commented Sep 26, 2018

If you have an empty protobuf message, the generated code compiles with «Defined but not used» warning:

$ cat test.proto
package test;
message Test {}
$ hprotoc test.proto
…
$ tail -n4 Test/Test.hs
instance P'.TextMsg Test where
  textPut msg = Prelude'.return ()
  textGet = Prelude'.return P'.defaultValue
    where%
$ stack build
…
    Defined but not used: ‘msg’
   |
68 |   textPut msg = Prelude'.return ()
   |           ^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant