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

Instances details
Eq PyType # 
Instance details

Defined in Ganeti.THH.PyType

Methods

(==) :: PyType -> PyType -> Bool

(/=) :: PyType -> PyType -> Bool

Ord PyType # 
Instance details

Defined in Ganeti.THH.PyType

Methods

compare :: PyType -> PyType -> Ordering

(<) :: PyType -> PyType -> Bool

(<=) :: PyType -> PyType -> Bool

(>) :: PyType -> PyType -> Bool

(>=) :: PyType -> PyType -> Bool

max :: PyType -> PyType -> PyType

min :: PyType -> PyType -> PyType

Show PyType # 
Instance details

Defined in Ganeti.THH.PyType

Methods

showsPrec :: Int -> PyType -> ShowS

show :: PyType -> String

showList :: [PyType] -> ShowS

Lift PyType # 
Instance details

Defined in Ganeti.THH.PyType

Methods

lift :: PyType -> Q Exp

PyValue PyType # 
Instance details

Defined in Ganeti.THH.PyType

Methods

showValue :: PyType -> String Source #

showValueList :: [PyType] -> String Source #

ht :: String -> String Source #

ptApp :: String -> [PyType] -> String Source #

pyTypeName :: Name -> PyType Source #

Converts a Haskell type name into a Python type name.

pyType :: Type -> Q PyType Source #

Converts a Haskell type into a Python type.

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

Returns a type and its type arguments.

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