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 # 
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 #

pyType :: Type -> Q PyType Source #

Converts a Haskell type into a Python type.

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