forked from higherkindness/mu-haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
higherkindness#257 Allow imports in protobuf
- Loading branch information
Reto Kühni
committed
Feb 3, 2024
1 parent
d1fbfee
commit 1f306df
Showing
6 changed files
with
109 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
syntax = "proto3"; | ||
|
||
import "import.proto"; | ||
|
||
message messageWithImports { | ||
imports.Message message = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
syntax = "proto3"; | ||
|
||
package imports; | ||
|
||
message Message { | ||
MessageA a = 1; | ||
oneof union { | ||
MessageB b = 2; | ||
MessageC c = 3; | ||
} | ||
Enum e = 4; | ||
Nested nested = 5; | ||
|
||
message Nested { | ||
string value = 1; | ||
} | ||
} | ||
|
||
message MessageA { | ||
string text = 1; | ||
} | ||
|
||
message MessageB { | ||
string text = 1; | ||
} | ||
|
||
message MessageC { | ||
string text = 1; | ||
} | ||
|
||
enum Enum { | ||
Value1 = 0; | ||
Value2 = 1; | ||
} |