ganeti-3.1: Cluster-based virtualization management software
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ganeti.THH.PyType

Description

PyType helper for Ganeti Haskell code.

Synopsis

Documentation

data PyType #

Represents a Python encoding of types.

Instances

Instances details
Show PyType # 
Instance details

Defined in Ganeti.THH.PyType

Methods

showsPrec :: Int -> PyType -> ShowS

show :: PyType -> String

showList :: [PyType] -> ShowS

PyValue PyType # 
Instance details

Defined in Ganeti.THH.PyType

Methods

showValue :: PyType -> String #

showValueList :: [PyType] -> String #

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

Lift PyType # 
Instance details

Defined in Ganeti.THH.PyType

Methods

lift :: Quote m => PyType -> m Exp

liftTyped :: forall (m :: Type -> Type). Quote m => PyType -> Code m PyType

pyType :: Type -> Q PyType #

Converts a Haskell type into a Python type.

pyOptionalType :: Bool -> Type -> Q PyType #

pyType opt typ converts Haskell type typ into a Python type, where opt determines if the converted type is optional (i.e., Maybe).