| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.ProtoLens.Compiler.Plugin
Synopsis
- type ProtoFileName = Text
- data ProtoFile = ProtoFile {}
- analyzeProtoFiles :: Text -> [FileDescriptorProto] -> Map ProtoFileName ProtoFile
- collectEnvFromDeps :: [ProtoFileName] -> Map ProtoFileName ProtoFile -> Env QName
- outputFilePath :: String -> Text
- moduleName :: Text -> FileDescriptorProto -> ModuleName
- moduleNameStr :: String -> FilePath -> String
Documentation
type ProtoFileName = Text #
The filename of an input .proto file.
Constructors
| ProtoFile | |
Fields
| |
analyzeProtoFiles :: Text -> [FileDescriptorProto] -> Map ProtoFileName ProtoFile #
collectEnvFromDeps :: [ProtoFileName] -> Map ProtoFileName ProtoFile -> Env QName #
outputFilePath :: String -> Text #
Get the output file path (for CodeGeneratorResponse.File) for a Haskell ModuleName.
moduleName :: Text -> FileDescriptorProto -> ModuleName #
Get the Haskell ModuleName corresponding to a given .proto file.
moduleNameStr :: String -> FilePath -> String #
Get the Haskell module name corresponding to a given .proto file.