-module Parser (runOFLParser) where
-import TopLevel
-import TargetMapping
+module OFC.Parser (runOFLParser) where
+import OFC.TopLevel
+import OFC.TargetMapping
import Data.Functor.Identity (Identity)
import Text.Parsec
import Text.Parsec.Expr
-module TopLevel where
-import TargetMapping
+module OFC.TopLevel where
+import OFC.TargetMapping
import Text.PrettyPrint
import Data.List (foldl')
import Data.Map (Map)
Name: ofc
Version: 0.1
-Description: ONTEP Form Compiler
+Description: ONETEP Form Compiler
Author: Francis Russell
Maintainer: fpr02@doc.ic.ac.uk
Build-Type: Simple
-Cabal-Version: >=1.2
+Cabal-Version: >=1.8.0.2
+
+Library
+ Hs-Source-Dirs: .
+ GHC-Options: -Wall -fno-warn-missing-signatures
+ Build-Depends: base, containers, parsec >= 3, pretty, transformers
+ Exposed-Modules: OFC.Parser
+ OFC.TopLevel
+ OFC.TargetMapping
Executable ofc
Main-is: Main.hs
Hs-Source-Dirs: src
- GHC-Options: -Wall -fno-warn-missing-signatures
- Build-Depends: base, containers, parsec >= 3, pretty, transformers
+ GHC-Options: -Wall
+ Build-Depends: base, ofc
module Main (main) where
import System.Environment (getArgs)
-import Parser (runOFLParser)
-import TopLevel (prettyPrint)
+import OFC.Parser (runOFLParser)
+import OFC.TopLevel (prettyPrint)
main :: IO()
main = do