name: cpython version: 3.5.0 license: GPL-3 license-file: license.txt author: John Millikin maintainer: Adam Zsigmond build-type: Simple cabal-version: >= 1.10 category: Foreign homepage: https://github.com/zsedem/haskell-cpython extra-source-files: changelog.md synopsis: Bindings for libpython description: These bindings allow Haskell code to call CPython code. It is not currently possible to call Haskell code from CPython, but this feature is planned. Flag usepython38 Description: Fix python version to 3.8. Needed in case of the libpython3.so does not exists or not a full python3 module. (If enabled, then only works for python 3.8) Default: False source-repository head type: git location: https://github.com/zsedem/haskell-cpython library ghc-options: -Wall -O2 -fno-warn-orphans cc-options: -fPIC hs-source-dirs: lib build-depends: base >= 4.0 && < 5.0 , bytestring >= 0.9 , text build-tools: c2hs >= 0.15 includes: cbits/hscpython-shim.h install-includes: cbits/hscpython-shim.h exposed-modules: CPython CPython.Types CPython.Types.ByteArray CPython.Types.Bytes CPython.Types.Capsule CPython.Types.Cell CPython.Types.Code CPython.Types.Complex CPython.Types.Dictionary CPython.Types.Exception CPython.Types.Float CPython.Types.Function CPython.Types.InstanceMethod CPython.Types.Integer CPython.Types.Iterator CPython.Types.List CPython.Types.Method CPython.Types.Module CPython.Types.Set CPython.Types.Slice CPython.Types.Tuple CPython.Types.Type CPython.Types.Unicode CPython.Types.WeakReference CPython.Protocols.Iterator CPython.Protocols.Mapping CPython.Protocols.Number CPython.Protocols.Object CPython.Protocols.Object.Enums CPython.Protocols.Sequence CPython.Constants CPython.Reflection CPython.System other-modules: CPython.Internal c-sources: cbits/hscpython-shim.c include-dirs: cbits if flag(usepython38) pkgconfig-depends: python-3.8 else pkgconfig-depends: python3 default-language: Haskell2010 test-suite cpython-testsuite type: exitcode-stdio-1.0 main-is: Tests.hs ghc-options: -Wall -fno-warn-orphans hs-source-dirs: tests build-depends: base > 4.0 && < 5.0 , text , cpython if flag(usepython38) extra-libraries: python3.8 pkgconfig-depends: python-3.8 else pkgconfig-depends: python3 default-language: Haskell2010