cpython-3.5.1: Bindings for libpython
Safe HaskellNone
LanguageHaskell2010

CPython.Simple.Instances

Documentation

class ToPy a where Source #

Methods

toPy :: a -> IO SomeObject Source #

Instances

Instances details
ToPy Char Source # 
Instance details

Defined in CPython.Simple.Instances

Methods

toPy :: Char -> IO SomeObject Source #

ToPy Double Source # 
Instance details

Defined in CPython.Simple.Instances

ToPy Integer Source # 
Instance details

Defined in CPython.Simple.Instances

ToPy String Source # 
Instance details

Defined in CPython.Simple.Instances

ToPy Text Source # 
Instance details

Defined in CPython.Simple.Instances

Methods

toPy :: Text -> IO SomeObject Source #

ToPy Arg Source # 
Instance details

Defined in CPython.Simple

Methods

toPy :: Arg -> IO SomeObject Source #

ToPy a => ToPy [a] Source # 
Instance details

Defined in CPython.Simple.Instances

Methods

toPy :: [a] -> IO SomeObject Source #

ToPy a => ToPy (Maybe a) Source # 
Instance details

Defined in CPython.Simple.Instances

Methods

toPy :: Maybe a -> IO SomeObject Source #

class FromPy a where Source #

Methods

fromPy :: SomeObject -> IO a Source #

Instances

Instances details
FromPy Char Source # 
Instance details

Defined in CPython.Simple.Instances

FromPy Double Source # 
Instance details

Defined in CPython.Simple.Instances

FromPy Integer Source # 
Instance details

Defined in CPython.Simple.Instances

FromPy () Source # 
Instance details

Defined in CPython.Simple.Instances

Methods

fromPy :: SomeObject -> IO () Source #

FromPy String Source # 
Instance details

Defined in CPython.Simple.Instances

FromPy Text Source # 
Instance details

Defined in CPython.Simple.Instances

FromPy a => FromPy [a] Source # 
Instance details

Defined in CPython.Simple.Instances

Methods

fromPy :: SomeObject -> IO [a] Source #

FromPy a => FromPy (Maybe a) Source # 
Instance details

Defined in CPython.Simple.Instances

Methods

fromPy :: SomeObject -> IO (Maybe a) Source #

(FromPy a, FromPy b) => FromPy (a, b) Source # 
Instance details

Defined in CPython.Simple.Instances

Methods

fromPy :: SomeObject -> IO (a, b) Source #

(FromPy a, FromPy b, FromPy c) => FromPy (a, b, c) Source # 
Instance details

Defined in CPython.Simple.Instances

Methods

fromPy :: SomeObject -> IO (a, b, c) Source #

easyToPy Source #

Arguments

:: Object c 
=> (a -> IO c)

python to- conversion, e.g. Py.toFloat

-> a

haskell type being converted

-> IO SomeObject 

easyFromPy Source #

Arguments

:: (Concrete b, Typeable c) 
=> (b -> IO c)

python from- conversion, e.g. Py.fromFloat

-> Proxy c

proxy for the type being converted to

-> SomeObject

python object to cast from

-> IO c