summaryrefslogtreecommitdiff
path: root/src/runtime/haskell-bind/pgf2.cabal
blob: 9e1e1e3938fe8269b0922b8661d0e1523ab91b75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: pgf2
version: 1.1.0
synopsis: Bindings to the Grammatical Framework C runtime
description:
  GF, Grammatical Framework, is a programming language for multilingual grammar applications.
  GF grammars are compiled into Portable Grammar Format (PGF) which can be used with the PGF runtime, written in C.
  This package provides Haskell bindings to that runtime.
homepage: https://www.grammaticalframework.org
license: LGPL-3
author: Krasimir Angelov, Inari Listenmaa
category: Language
build-type: Simple
extra-source-files: README
cabal-version: >=1.10

library
  exposed-modules:
    PGF2,
    PGF2.Internal
  other-modules:
    PGF2.FFI,
    PGF2.Expr,
    PGF2.Type
  build-depends:
    base >=4.3,
    containers,
    pretty
  default-language: Haskell2010
  build-tools: hsc2hs
  extra-libraries: pgf gu
  cc-options: -std=c99
  c-sources: utils.c

executable pgf-shell
  main-is: pgf-shell.hs
  hs-source-dirs: examples
  build-depends:
    base,
    containers,
    lifted-base,
    mtl,
    pgf2
  default-language: Haskell2010
  if impl(ghc>=7.0)
    ghc-options: -rtsopts