From 045eeeb2804240f34a490af0ceef351908ade7bc Mon Sep 17 00:00:00 2001 From: hallgren Date: Fri, 17 Jan 2014 14:02:35 +0000 Subject: haskell-bind: add a cabal file and examples/pgf-shell.hs * The haskell-bind.cabal file makes it easy to build the haskell binding and use it in ghci. * pgf-shell.hs is a simple example of how to use the haskell binding. --- src/runtime/haskell-bind/haskell-bind.cabal | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/runtime/haskell-bind/haskell-bind.cabal (limited to 'src/runtime/haskell-bind/haskell-bind.cabal') diff --git a/src/runtime/haskell-bind/haskell-bind.cabal b/src/runtime/haskell-bind/haskell-bind.cabal new file mode 100644 index 000000000..ea4f41cf6 --- /dev/null +++ b/src/runtime/haskell-bind/haskell-bind.cabal @@ -0,0 +1,32 @@ +-- Initial haskell-bind.cabal generated by cabal init. For further +-- documentation, see http://haskell.org/cabal/users-guide/ + +name: haskell-bind +version: 0.1.0.0 +-- synopsis: +-- description: +homepage: http://www.grammaticalframework.org +license: LGPL-3 +license-file: LICENSE +author: Inari +-- maintainer: +-- copyright: +category: Language +build-type: Simple +extra-source-files: README +cabal-version: >=1.10 + +library + exposed-modules: CId, CRuntimeFFI + other-modules: Gu, PgfLow + build-depends: base >=4.6 && <4.7, bytestring >=0.10 && <0.11, pretty >=1.1 && <1.2 + -- hs-source-dirs: + build-tools: hsc2hs + extra-libraries: gu pgf + default-language: Haskell2010 + +executable pgf-shell + main-is: pgf-shell.hs + hs-source-dirs: examples + build-depends: base, haskell-bind + default-language: Haskell2010 -- cgit v1.2.3