1
0
forked from GitHub/gf-core

Bump pgf2 to 1.2.0

This commit is contained in:
John J. Camilleri
2020-07-28 22:36:49 +02:00
parent 22d5f31d74
commit f00f0cb0ef
4 changed files with 31 additions and 23 deletions

View File

@@ -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.

View File

@@ -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 <https://github.com/GrammaticalFramework/gf-core/blob/master/src/runtime/c/INSTALL>
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

View File

@@ -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

View File

@@ -0,0 +1 @@
resolver: lts-12.26 # ghc 8.4.4