ContentsIndex
Python.Types
Portability portable
Stability provisional
Maintainer jgoerzen@complete.org
Description

Interfaces to low-level Python types. You should probably not use this module directly. You probably want Python.Objects instead.

You'll only need this module directly if you are importing new functions from the Python C API.

Written by John Goerzen, jgoerzen@complete.org

Synopsis
newtype PyObject = PyObject (ForeignPtr CPyObject)
type CPyObject = ()
data PyException = PyException {
excType :: PyObject
excValue :: PyObject
excTraceBack :: PyObject
excFormatted :: String
}
data StartFrom
= Py_eval_input
| Py_file_input
| Py_single_input
Documentation
newtype PyObject
The type of Python objects.
Constructors
PyObject (ForeignPtr CPyObject)
Instances
ToPyObject [PyObject]
FromPyObject [PyObject]
ToPyObject [(PyObject, PyObject)]
ToPyObject [(PyObject, PyObject)]
FromPyObject [(PyObject, PyObject)]
FromPyObject [(PyObject, PyObject)]
ToPyObject a => ToPyObject [(a, PyObject)]
FromPyObject a => FromPyObject [(a, PyObject)]
Eq PyObject
Show PyObject
type CPyObject = ()
data PyException
The type of Python exceptions.
Constructors
PyException
excType :: PyObjectException type
excValue :: PyObjectException value
excTraceBack :: PyObjectTraceback
excFormatted :: StringFormatted for display
Instances
Show PyException
Typeable PyException
data StartFrom
How to interpret a snippet of Python code.
Constructors
Py_eval_input
Py_file_input
Py_single_input
Produced by Haddock version 0.6