summaryrefslogtreecommitdiff
path: root/gf.cabal
diff options
context:
space:
mode:
authorkrangelov <kr.angelov@gmail.com>2021-07-26 16:52:11 +0200
committerkrangelov <kr.angelov@gmail.com>2021-07-26 16:52:11 +0200
commite47042424ee2450c69c509601ddc3c1cc8cd9a39 (patch)
tree5cfad2acca46f8c9aafa3a5f97600ae26bbe0e1c /gf.cabal
parentecf309a28e9935923308da4b6aa2b1cc6c4b52e2 (diff)
parentd0a881f9038d2ca1620e0d95f90c297a452774d5 (diff)
Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core
Diffstat (limited to 'gf.cabal')
-rw-r--r--gf.cabal189
1 files changed, 119 insertions, 70 deletions
diff --git a/gf.cabal b/gf.cabal
index 0076e7638..711acaeb2 100644
--- a/gf.cabal
+++ b/gf.cabal
@@ -1,19 +1,19 @@
name: gf
-version: 3.10.4-git
+version: 3.11.0-git
-cabal-version: >= 1.22
+cabal-version: 1.22
build-type: Custom
license: OtherLicense
license-file: LICENSE
category: Natural Language Processing, Compiler
synopsis: Grammatical Framework
description: GF, Grammatical Framework, is a programming language for multilingual grammar applications
-homepage: http://www.grammaticalframework.org/
+homepage: https://www.grammaticalframework.org/
bug-reports: https://github.com/GrammaticalFramework/gf-core/issues
-maintainer: Thomas Hallgren
-tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.3
+tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.10.4
data-dir: src
+extra-source-files: WebSetup.hs
data-files:
www/*.html
www/*.css
@@ -41,23 +41,23 @@ data-files:
custom-setup
setup-depends:
- base,
- Cabal >=1.22.0.0,
- directory,
- filepath,
- process >=1.0.1.1
+ base >= 4.9.1 && < 4.15,
+ Cabal >= 1.22.0.0,
+ directory >= 1.3.0 && < 1.4,
+ filepath >= 1.4.1 && < 1.5,
+ process >= 1.0.1.1 && < 1.7
source-repository head
- type: git
+ type: git
location: https://github.com/GrammaticalFramework/gf-core.git
flag interrupt
Description: Enable Ctrl+Break in the shell
- Default: True
+ Default: True
flag server
Description: Include --server mode
- Default: True
+ Default: True
flag network-uri
description: Get Network.URI from the network-uri package
@@ -69,24 +69,29 @@ flag network-uri
flag c-runtime
Description: Include functionality from the C run-time library (which must be installed already)
- Default: False
-
-Library
- default-language: Haskell2010
- build-depends: base >= 4.6 && <5,
- array,
- containers,
- bytestring,
- utf8-string,
- random,
- pretty,
- mtl,
- exceptions,
- fail,
- -- For compatability with ghc < 8
- -- We need transformers-compat >= 0.6.3, but that is only in newer snapshots where it is redundant.
- transformers-compat,
- ghc-prim
+ Default: False
+
+library
+ default-language: Haskell2010
+ build-depends:
+ -- GHC 8.0.2 to GHC 8.10.4
+ array >= 0.5.1 && < 0.6,
+ base >= 4.9.1 && < 4.15,
+ bytestring >= 0.10.8 && < 0.11,
+ containers >= 0.5.7 && < 0.7,
+ exceptions >= 0.8.3 && < 0.11,
+ ghc-prim >= 0.5.0 && < 0.7,
+ mtl >= 2.2.1 && < 2.3,
+ pretty >= 1.1.3 && < 1.2,
+ random >= 1.1 && < 1.3,
+ utf8-string >= 1.0.1.1 && < 1.1,
+ -- We need transformers-compat >= 0.6.3, but that is only in newer snapshots where it is redundant.
+ transformers-compat >= 0.5.1.4 && < 0.7
+
+ if impl(ghc<8.0)
+ build-depends:
+ fail >= 4.9.0 && < 4.10
+
hs-source-dirs: src/runtime/haskell
other-modules:
@@ -135,18 +140,28 @@ Library
if flag(c-runtime)
exposed-modules: PGF2
- other-modules: PGF2.FFI PGF2.Expr PGF2.Type
- GF.Interactive2 GF.Command.Commands2
- hs-source-dirs: src/runtime/haskell-bind
- build-tools: hsc2hs
+ other-modules:
+ PGF2.FFI
+ PGF2.Expr
+ PGF2.Type
+ GF.Interactive2
+ GF.Command.Commands2
+ hs-source-dirs: src/runtime/haskell-bind
+ build-tools: hsc2hs
extra-libraries: pgf gu
- c-sources: src/runtime/haskell-bind/utils.c
- cc-options: -std=c99
+ c-sources: src/runtime/haskell-bind/utils.c
+ cc-options: -std=c99
---- GF compiler as a library:
- build-depends: filepath, directory>=1.2, time,
- process, haskeline, parallel>=3, json
+ build-depends:
+ directory >= 1.3.0 && < 1.4,
+ filepath >= 1.4.1 && < 1.5,
+ haskeline >= 0.7.3 && < 0.9,
+ json >= 0.9.1 && < 0.11,
+ parallel >= 3.2.1.1 && < 3.3,
+ process >= 1.4.3 && < 1.7,
+ time >= 1.6.0 && < 1.10
hs-source-dirs: src/compiler
exposed-modules:
@@ -157,12 +172,19 @@ Library
GF.Grammar.Canonical
other-modules:
- GF.Main GF.Compiler GF.Interactive
-
- GF.Compile GF.CompileInParallel GF.CompileOne GF.Compile.GetGrammar
+ GF.Main
+ GF.Compiler
+ GF.Interactive
+
+ GF.Compile
+ GF.CompileInParallel
+ GF.CompileOne
+ GF.Compile.GetGrammar
GF.Grammar
- GF.Data.Operations GF.Infra.Option GF.Infra.UseIO
+ GF.Data.Operations
+ GF.Infra.Option
+ GF.Infra.UseIO
GF.Command.Abstract
GF.Command.CommandInfo
@@ -177,7 +199,7 @@ Library
GF.Command.TreeOperations
GF.Compile.CFGtoPGF
GF.Compile.CheckGrammar
- GF.Compile.Compute.ConcreteNew
+ GF.Compile.Compute.Concrete
GF.Compile.Compute.Predef
GF.Compile.Compute.Value
GF.Compile.ExampleBased
@@ -206,7 +228,6 @@ Library
GF.Compile.TypeCheck.Concrete
GF.Compile.TypeCheck.ConcreteNew
GF.Compile.TypeCheck.Primitives
- GF.Compile.TypeCheck.RConcrete
GF.Compile.TypeCheck.TC
GF.Compile.Update
GF.Data.BacktrackM
@@ -273,12 +294,17 @@ Library
cpp-options: -DC_RUNTIME
if flag(server)
- build-depends: httpd-shed>=0.4.0.3, network>=2.3 && <2.7,
- cgi>=3001.2.2.0
+ build-depends:
+ cgi >= 3001.3.0.2 && < 3001.6,
+ httpd-shed >= 0.4.0 && < 0.5,
+ network>=2.3 && <2.7
if flag(network-uri)
- build-depends: network-uri>=2.6, network>=2.6
+ build-depends:
+ network-uri >= 2.6.1.0 && < 2.7,
+ network>=2.6 && <2.7
else
- build-depends: network<2.6
+ build-depends:
+ network >= 2.5 && <2.6
cpp-options: -DSERVER_MODE
other-modules:
@@ -295,7 +321,10 @@ Library
Fold
ExampleDemo
ExampleService
- hs-source-dirs: src/server src/server/transfer src/example-based
+ hs-source-dirs:
+ src/server
+ src/server/transfer
+ src/example-based
if flag(interrupt)
cpp-options: -DUSE_INTERRUPT
@@ -304,26 +333,35 @@ Library
other-modules: GF.System.NoSignal
if impl(ghc>=7.8)
- build-tools: happy>=1.19, alex>=3.1
+ build-tools:
+ happy>=1.19,
+ alex>=3.1
-- ghc-options: +RTS -A20M -RTS
else
- build-tools: happy, alex>=3
+ build-tools:
+ happy,
+ alex>=3
ghc-options: -fno-warn-tabs
if os(windows)
- build-depends: Win32
+ build-depends:
+ Win32 >= 2.3.1.1 && < 2.7
else
- build-depends: unix, terminfo>=0.4
+ build-depends:
+ terminfo >=0.4.0 && < 0.5,
+ unix >= 2.7.2 && < 2.8
if impl(ghc>=8.2)
ghc-options: -fhide-source-paths
-Executable gf
+executable gf
hs-source-dirs: src/programs
main-is: gf-main.hs
- default-language: Haskell2010
- build-depends: gf, base
+ default-language: Haskell2010
+ build-depends:
+ gf,
+ base
ghc-options: -threaded
--ghc-options: -fwarn-unused-imports
@@ -337,19 +375,30 @@ Executable gf
if impl(ghc>=8.2)
ghc-options: -fhide-source-paths
-executable pgf-shell
---if !flag(c-runtime)
- buildable: False
- main-is: pgf-shell.hs
- hs-source-dirs: src/runtime/haskell-bind/examples
- build-depends: gf, base, containers, mtl, lifted-base
- default-language: Haskell2010
- if impl(ghc>=7.0)
- ghc-options: -rtsopts
+-- executable pgf-shell
+-- --if !flag(c-runtime)
+-- buildable: False
+-- main-is: pgf-shell.hs
+-- hs-source-dirs: src/runtime/haskell-bind/examples
+-- build-depends:
+-- gf,
+-- base,
+-- containers,
+-- mtl,
+-- lifted-base
+-- default-language: Haskell2010
+-- if impl(ghc>=7.0)
+-- ghc-options: -rtsopts
test-suite gf-tests
- type: exitcode-stdio-1.0
- main-is: run.hs
+ type: exitcode-stdio-1.0
+ main-is: run.hs
hs-source-dirs: testsuite
- build-depends: base>=4.3 && <5, Cabal>=1.8, directory, filepath, process
- default-language: Haskell2010
+ build-depends:
+ base >= 4.9.1 && < 4.15,
+ Cabal >= 1.8,
+ directory >= 1.3.0 && < 1.4,
+ filepath >= 1.4.1 && < 1.5,
+ process >= 1.4.3 && < 1.7
+ build-tool-depends: gf:gf
+ default-language: Haskell2010