From 4800cd71597cc81c28a46ef44e70e5a0982d4eeb Mon Sep 17 00:00:00 2001 From: krasimir Date: Fri, 23 Apr 2010 14:13:36 +0000 Subject: tweak gf.cabal to be more Hackage friendly --- GF.cabal | 157 -------------------------------------------------------------- gf.cabal | 159 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 159 insertions(+), 157 deletions(-) delete mode 100644 GF.cabal create mode 100644 gf.cabal diff --git a/GF.cabal b/GF.cabal deleted file mode 100644 index 629638da0..000000000 --- a/GF.cabal +++ /dev/null @@ -1,157 +0,0 @@ -name: gf -version: 3.1.6 -cabal-version: >= 1.2 -build-type: Custom -license: GPL -license-file: LICENSE -synopsis: Grammatical Framework -homepage: http://www.grammaticalframework.org - -flag interrupt - Description: Enable Ctrl+Break in the shell - Default: True - -library - build-depends: base >= 4.2 && <5, - array, - containers, - bytestring, - random - ghc-options: -O2 - hs-source-dirs: src/compiler src/runtime/haskell - extensions: - exposed-modules: - PGF - other-modules: - PGF.CId - PGF.Data - PGF.Macros - PGF.Generate - PGF.Linearize - PGF.Parse - PGF.Expr - PGF.Type - PGF.Tree - PGF.Paraphrase - PGF.TypeCheck - PGF.Binary - PGF.Morphology - PGF.VisualizeTree - PGF.Printer - PGF.Probabilistic - GF.Data.TrieMap - GF.Data.Utilities - GF.Data.SortedList - GF.Data.ErrM - GF.Data.Relation - GF.Data.Operations --- not really part of GF but I have changed the original binary library --- and we have to keep the copy for now. - Data.Binary - Data.Binary.Put - Data.Binary.Get - Data.Binary.Builder - -executable gf - build-depends: base >= 4.2, - array, - containers, - bytestring, - filepath, - directory, - random, - old-time, - process, - pretty, - mtl, - haskeline - build-tools: happy, alex - if os(windows) - build-depends: Win32 - else - build-depends: unix - ghc-options: -O2 - hs-source-dirs: src/compiler src/runtime/haskell - extensions: - main-is: GF.hs - other-modules: - GF.Data.BacktrackM - GF.JavaScript.AbsJS - GF.JavaScript.PrintJS - GF.Infra.CompactPrint - GF.Data.TrieMap - GF.Data.Utilities - GF.Data.SortedList - GF.Data.ErrM - GF.Data.Operations - GF.Infra.Ident - GF.Grammar.Predef - GF.Data.Str - GF.Data.Zipper - GF.Infra.GetOpt - GF.Infra.Option - GF.Infra.UseIO - GF.Command.Commands - GF.Command.Interpreter - GF.Command.Abstract - GF.Command.Parse - GF.Command.Importing - GF.Infra.Modules - GF.Grammar - GF.Grammar.Lexer - GF.Grammar.Parser - GF.Grammar.Grammar - GF.Grammar.Values - GF.Grammar.Macros - GF.Grammar.Lockfield - GF.Grammar.MMacros - GF.Grammar.Lookup - GF.Grammar.Unify - GF.Grammar.PatternMatch - GF.Grammar.Printer - GF.Grammar.ShowTerm - GF.Grammar.Binary - GF.Infra.CheckM - GF.Compile.Update - GF.Compile.CheckGrammar - GF.Compile.Refresh - GF.Compile.Rename - GF.Compile.ReadFiles - GF.Compile.GrammarToPGF - GF.Compile.Concrete.TypeCheck - GF.Compile.Concrete.Compute - GF.Compile.Concrete.AppPredefined - GF.Compile.Abstract.TC - GF.Compile.Abstract.TypeCheck - GF.Compile.Abstract.Compute - GF.Compile.Optimize - GF.Compile.SubExOpt - GF.Compile.ModDeps - GF.Compile.GetGrammar - GF.Compile.PGFtoHaskell - GF.Compile.PGFtoProlog - GF.Compile.PGFtoJS - GF.Compile - GF.Quiz - PGF - PGF.CId - PGF.Data - PGF.Expr - PGF.Type - PGF.Tree - PGF.Macros - PGF.Generate - PGF.Linearize - PGF.Binary - PGF.Paraphrase - PGF.TypeCheck - PGF.Binary - PGF.Printer - GFC - GFI - - if flag(interrupt) - cpp-options: -DUSE_INTERRUPT - other-modules: GF.System.UseSignal - else - other-modules: GF.System.NoSignal diff --git a/gf.cabal b/gf.cabal new file mode 100644 index 000000000..89e1f5991 --- /dev/null +++ b/gf.cabal @@ -0,0 +1,159 @@ +name: gf +version: 3.1.6 +cabal-version: >= 1.2 +build-type: Custom +license: GPL +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 + +flag interrupt + Description: Enable Ctrl+Break in the shell + Default: True + +library + build-depends: base >= 4.2 && <5, + array, + containers, + bytestring, + random + ghc-options: -O2 + hs-source-dirs: src/compiler src/runtime/haskell + extensions: + exposed-modules: + PGF + other-modules: + PGF.CId + PGF.Data + PGF.Macros + PGF.Generate + PGF.Linearize + PGF.Parse + PGF.Expr + PGF.Type + PGF.Tree + PGF.Paraphrase + PGF.TypeCheck + PGF.Binary + PGF.Morphology + PGF.VisualizeTree + PGF.Printer + PGF.Probabilistic + GF.Data.TrieMap + GF.Data.Utilities + GF.Data.SortedList + GF.Data.ErrM + GF.Data.Relation + GF.Data.Operations +-- not really part of GF but I have changed the original binary library +-- and we have to keep the copy for now. + Data.Binary + Data.Binary.Put + Data.Binary.Get + Data.Binary.Builder + +executable gf + build-depends: base >= 4.2, + array, + containers, + bytestring, + filepath, + directory, + random, + old-time, + process, + pretty, + mtl, + haskeline + build-tools: happy, alex + if os(windows) + build-depends: Win32 + else + build-depends: unix + ghc-options: -O2 + hs-source-dirs: src/compiler src/runtime/haskell + extensions: + main-is: GF.hs + other-modules: + GF.Data.BacktrackM + GF.JavaScript.AbsJS + GF.JavaScript.PrintJS + GF.Infra.CompactPrint + GF.Data.TrieMap + GF.Data.Utilities + GF.Data.SortedList + GF.Data.ErrM + GF.Data.Operations + GF.Infra.Ident + GF.Grammar.Predef + GF.Data.Str + GF.Data.Zipper + GF.Infra.GetOpt + GF.Infra.Option + GF.Infra.UseIO + GF.Command.Commands + GF.Command.Interpreter + GF.Command.Abstract + GF.Command.Parse + GF.Command.Importing + GF.Infra.Modules + GF.Grammar + GF.Grammar.Lexer + GF.Grammar.Parser + GF.Grammar.Grammar + GF.Grammar.Values + GF.Grammar.Macros + GF.Grammar.Lockfield + GF.Grammar.MMacros + GF.Grammar.Lookup + GF.Grammar.Unify + GF.Grammar.PatternMatch + GF.Grammar.Printer + GF.Grammar.ShowTerm + GF.Grammar.Binary + GF.Infra.CheckM + GF.Compile.Update + GF.Compile.CheckGrammar + GF.Compile.Refresh + GF.Compile.Rename + GF.Compile.ReadFiles + GF.Compile.GrammarToPGF + GF.Compile.Concrete.TypeCheck + GF.Compile.Concrete.Compute + GF.Compile.Concrete.AppPredefined + GF.Compile.Abstract.TC + GF.Compile.Abstract.TypeCheck + GF.Compile.Abstract.Compute + GF.Compile.Optimize + GF.Compile.SubExOpt + GF.Compile.ModDeps + GF.Compile.GetGrammar + GF.Compile.PGFtoHaskell + GF.Compile.PGFtoProlog + GF.Compile.PGFtoJS + GF.Compile + GF.Quiz + PGF + PGF.CId + PGF.Data + PGF.Expr + PGF.Type + PGF.Tree + PGF.Macros + PGF.Generate + PGF.Linearize + PGF.Binary + PGF.Paraphrase + PGF.TypeCheck + PGF.Binary + PGF.Printer + GFC + GFI + + if flag(interrupt) + cpp-options: -DUSE_INTERRUPT + other-modules: GF.System.UseSignal + else + other-modules: GF.System.NoSignal -- cgit v1.2.3