forked from GitHub/gf-core
add Cabal description for GF
This commit is contained in:
@@ -1,52 +0,0 @@
|
||||
Name: gf-embed
|
||||
Version: 2.8
|
||||
Cabal-version: >= 1.2
|
||||
Build-type: Simple
|
||||
License: GPL
|
||||
License-file: ../LICENSE
|
||||
Synopsis: Grammatical Framework embedded API.
|
||||
|
||||
Flag split-base
|
||||
|
||||
Library
|
||||
Build-depends: mtl, haskell98
|
||||
if flag(split-base)
|
||||
Build-depends: base >= 3.0, array, containers, directory, random
|
||||
else
|
||||
Build-depends: base < 3.0
|
||||
Ghc-options: -O2
|
||||
Extensions:
|
||||
Exposed-Modules:
|
||||
GF.GFCC.API
|
||||
-- needed by code generated by -haskell
|
||||
GF.GFCC.DataGFCC
|
||||
GF.GFCC.CId
|
||||
Other-modules:
|
||||
GF.Conversion.SimpleToFCFG
|
||||
GF.Data.Assoc
|
||||
GF.Data.Utilities
|
||||
GF.Data.SortedList
|
||||
GF.Data.BacktrackM
|
||||
GF.Data.ErrM
|
||||
GF.Data.GeneralDeduction
|
||||
GF.Data.RedBlackSet
|
||||
GF.Text.UTF8
|
||||
GF.Infra.CompactPrint
|
||||
GF.Infra.PrintClass
|
||||
GF.Formalism.FCFG
|
||||
GF.Formalism.Utilities
|
||||
GF.Parsing.FCFG
|
||||
GF.Parsing.FCFG.PInfo
|
||||
GF.Parsing.FCFG.Range
|
||||
GF.Parsing.FCFG.Active
|
||||
GF.Command.PPrTree
|
||||
GF.Command.AbsGFShell
|
||||
GF.Command.PrintGFShell
|
||||
GF.Command.ParGFShell
|
||||
GF.Command.LexGFShell
|
||||
GF.GFCC.Macros
|
||||
GF.GFCC.Generate
|
||||
GF.GFCC.Linearize
|
||||
GF.GFCC.Raw.AbsGFCCRaw
|
||||
GF.GFCC.Raw.ParGFCCRaw
|
||||
GF.GFCC.Raw.ConvertGFCC
|
||||
@@ -4,7 +4,7 @@ module GF.Command.PrintGFShell where
|
||||
-- pretty-printer generated by the BNF converter
|
||||
|
||||
import GF.Command.AbsGFShell
|
||||
import Char
|
||||
import Data.Char
|
||||
|
||||
-- the top-level printing method
|
||||
printTree :: Print a => a -> String
|
||||
|
||||
@@ -35,7 +35,7 @@ import Data.Char (toUpper)
|
||||
import Data.List (nub)
|
||||
import qualified Data.ByteString.Char8 as BS
|
||||
import Control.Monad (foldM)
|
||||
import System (system)
|
||||
import System.Cmd (system)
|
||||
|
||||
getSourceModule :: Options -> FilePath -> IOE SourceModule
|
||||
getSourceModule opts file0 = do
|
||||
|
||||
@@ -34,7 +34,6 @@ import Data.Char
|
||||
import Data.List
|
||||
import qualified Data.ByteString.Char8 as BS
|
||||
import qualified Data.Map as Map
|
||||
import System
|
||||
import System.Time
|
||||
import System.Directory
|
||||
import System.FilePath
|
||||
|
||||
@@ -4,7 +4,7 @@ module GF.JavaScript.PrintJS (printTree, Doc, Print(..)) where
|
||||
-- pretty-printer generated by the BNF converter
|
||||
|
||||
import GF.JavaScript.AbsJS
|
||||
import Char
|
||||
import Data.Char
|
||||
|
||||
-- the top-level printing method
|
||||
printTree :: Print a => a -> String
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/usr/bin/env runghc
|
||||
|
||||
> module Main where
|
||||
|
||||
> import Distribution.Simple
|
||||
|
||||
> main :: IO ()
|
||||
> main = defaultMain
|
||||
Reference in New Issue
Block a user