ganeti

Safe HaskellNone

Ganeti.THH.PyType

Description

PyType helper for Ganeti Haskell code.

Synopsis

Documentation

data PyType Source

Represents a Python encoding of types.

Instances

Eq PyType 
Ord PyType 
Show PyType 
Lift PyType 
PyValue PyType 

ht :: String -> StringSource

ptApp :: String -> [PyType] -> StringSource

pyType :: Type -> Q PyTypeSource

Converts a Haskell type into a Python type.

pyAppType :: Type -> (Type, [Type])Source

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).