Safe Haskell | None |
---|
PyType helper for Ganeti Haskell code.
Documentation
Represents a Python encoding of types.
PTMaybe PyType | |
PTApp PyType [PyType] | |
PTOther String | |
PTAny | |
PTDictOf | |
PTListOf | |
PTNone | |
PTObject | |
PTOr | |
PTSetOf | |
PTTupleOf |
pyTypeName :: Name -> PyType Source #
Converts a Haskell type name into a Python type name.
pyOptionalType :: Bool -> Type -> Q PyType Source #
pyType opt typ
converts Haskell type typ
into a Python type,
where opt
determines if the converted type is optional (i.e.,
Maybe).