diff --git a/src/runtime/haskell-bind/CHANGELOG.md b/src/runtime/haskell-bind/CHANGELOG.md index e3d6410fa..e9da7fac4 100644 --- a/src/runtime/haskell-bind/CHANGELOG.md +++ b/src/runtime/haskell-bind/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.2.0 + +- Stop `pgf-shell` from being built by default. +- parseToChart also returns the category. +- bugfix in bracketedLinearize. + ## 1.1.0 - Remove SG library. diff --git a/src/runtime/haskell-bind/README.md b/src/runtime/haskell-bind/README.md index a4ce0ef20..f136ad2da 100644 --- a/src/runtime/haskell-bind/README.md +++ b/src/runtime/haskell-bind/README.md @@ -1,6 +1,6 @@ # PGF2 -This is a Haskell binding to the PGF runtime in C. +This is a Haskell binding to the PGF runtime written in C. The exposed modules are: @@ -9,18 +9,19 @@ The exposed modules are: ## How to compile -``` -cabal install -``` - **Note:** you must have the PGF C runtime already installed and available. See +Once the runtine is installed, you can use: + +``` +cabal install pgf2 +``` + ## How to use -Import PGF to the Haskell program that you're writing. -The Cabal infrastructure will make sure to tell the compiler -where to find the relevant modules. +Simply import `PGF2` in your Haskell program. +The Cabal infrastructure will make sure to tell the compiler where to find the relevant modules. ## Example diff --git a/src/runtime/haskell-bind/pgf2.cabal b/src/runtime/haskell-bind/pgf2.cabal index f0cc65e70..a4e113f3b 100644 --- a/src/runtime/haskell-bind/pgf2.cabal +++ b/src/runtime/haskell-bind/pgf2.cabal @@ -1,6 +1,6 @@ name: pgf2 -version: 1.1.0 -synopsis: Bindings to the PGF runtime in C +version: 1.2.0 +synopsis: Bindings to the C version of the PGF 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. @@ -9,7 +9,7 @@ homepage: https://www.grammaticalframework.org license: LGPL-3 license-file: LICENSE author: Krasimir Angelov -maintainer: Krasimir Angelov, John J. Camilleri +maintainer: kr.angelov@gmail.com category: Language build-type: Simple extra-source-files: CHANGELOG.md, README.md @@ -33,15 +33,15 @@ library 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 +-- 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 diff --git a/src/runtime/haskell-bind/stack.yaml b/src/runtime/haskell-bind/stack.yaml new file mode 100644 index 000000000..3d69a763f --- /dev/null +++ b/src/runtime/haskell-bind/stack.yaml @@ -0,0 +1 @@ +resolver: lts-12.26 # ghc 8.4.4