schema-0.0.3: Encoding-independent schemas for Haskell data types.
Safe HaskellNone
LanguageHaskell2010

Data.Schema.C

Synopsis

Documentation

data StructField Source #

Constructors

StructField 

Fields

Instances

Instances details
Show StructField Source # 
Instance details

Defined in Data.Schema.C

data StructName Source #

Constructors

StructName 

Fields

Instances

Instances details
Show StructName Source # 
Instance details

Defined in Data.Schema.C

genStruct :: StructName -> [StructField] -> Doc Source #

Generate the C struct definition.

setterDecl :: Doc -> Doc -> String -> Doc -> Doc -> Doc Source #

fieldName :: String -> Doc Source #

fieldName' -> field_name

toCamelSnake :: String -> String Source #

TypeName -> Type_Name