| Safe Haskell | None |
|---|
Ganeti.THH.PyType
Description
PyType helper for Ganeti Haskell code.
Documentation
Represents a Python encoding of types.
pyTypeName :: Name -> PyTypeSource
pyOptionalType :: Bool -> Type -> Q PyTypeSource
pyType opt typ converts Haskell type typ into a Python type,
where opt determines if the converted type is optional (i.e.,
Maybe).