| Safe Haskell | None |
|---|
Ganeti.THH.PyType
Description
PyType helper for Ganeti Haskell code.
Documentation
Represents a Python encoding of types.
Constructors
| 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).