cleanup the code for the FFI binding. The API is now more uniform with the Python and the Java bindings. Fixed a lot of memory leaks.

This commit is contained in:
kr.angelov
2014-02-09 20:45:11 +00:00
parent f30c60c3d7
commit adeeb47e06
7 changed files with 312 additions and 571 deletions

View File

@@ -0,0 +1,36 @@
-- Initial haskell-bind.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: pgf2-bind
version: 0.1.0.0
-- synopsis:
-- description:
homepage: http://www.grammaticalframework.org
license: LGPL-3
--license-file: LICENSE
author: Inari
maintainer: Krasimir Angelov
-- copyright:
category: Language
build-type: Simple
extra-source-files: README
cabal-version: >=1.10
library
exposed-modules: PGF2
other-modules: PGF2.FFI
build-depends: base >=4.5 && <4.7, bytestring >=0.9 && <0.11,
containers
-- hs-source-dirs:
build-tools: hsc2hs
extra-libraries: gu pgf
cc-options: -std=c99
default-language: Haskell2010
executable pgf-shell
main-is: pgf-shell.hs
hs-source-dirs: examples
build-depends: base, haskell-bind, containers
default-language: Haskell2010
if impl(ghc>=7.0)
ghc-options: -rtsopts