Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- genC :: Schema -> Doc
- namespaceFor :: [String] -> String
- data StructField = StructField {}
- data StructName = StructName {}
- flattenFields :: String -> String -> Schema -> (StructName, [StructField])
- genDatatype :: StructName -> [StructField] -> Doc
- genHeader :: StructName -> [StructField] -> Doc
- genSource :: StructName -> [StructField] -> Doc
- genTypedef :: StructName -> Doc
- genStruct :: StructName -> [StructField] -> Doc
- eventParam :: Doc -> Doc -> Doc -> Doc
- getterDecl :: Doc -> Doc -> String -> Doc -> Doc
- setterDecl :: Doc -> Doc -> String -> Doc -> Doc -> Doc
- getterDeclFor :: (String -> Doc -> Doc) -> StructField -> Doc
- genGetterDecls :: StructName -> [StructField] -> Doc
- genGetterDefn :: StructName -> StructField -> Doc
- genSetterDefn :: StructName -> StructField -> Doc
- fieldName :: String -> Doc
- tyName :: String -> String -> Type
- toCamelSnake :: String -> String
Documentation
namespaceFor :: [String] -> String Source #
data StructField Source #
Instances
Show StructField Source # | |
Defined in Data.Schema.C showsPrec :: Int -> StructField -> ShowS # show :: StructField -> String # showList :: [StructField] -> ShowS # |
data StructName Source #
Instances
Show StructName Source # | |
Defined in Data.Schema.C showsPrec :: Int -> StructName -> ShowS # show :: StructName -> String # showList :: [StructName] -> ShowS # |
flattenFields :: String -> String -> Schema -> (StructName, [StructField]) Source #
genDatatype :: StructName -> [StructField] -> Doc Source #
genHeader :: StructName -> [StructField] -> Doc Source #
genSource :: StructName -> [StructField] -> Doc Source #
genTypedef :: StructName -> Doc Source #
genStruct :: StructName -> [StructField] -> Doc Source #
Generate the C struct definition.
getterDeclFor :: (String -> Doc -> Doc) -> StructField -> Doc Source #
genGetterDecls :: StructName -> [StructField] -> Doc Source #
genGetterDefn :: StructName -> StructField -> Doc Source #
genSetterDefn :: StructName -> StructField -> Doc Source #
toCamelSnake :: String -> String Source #
TypeName -> Type_Name