2015-11-18 01:44:16 +03:00
|
|
|
module Main where
|
|
|
|
|
2015-11-18 22:45:23 +03:00
|
|
|
import Diff
|
|
|
|
import Patch
|
|
|
|
import Term
|
|
|
|
import Syntax
|
|
|
|
import Control.Comonad.Cofree
|
|
|
|
import Control.Monad.Free
|
|
|
|
import Data.Map
|
2015-11-21 00:21:09 +03:00
|
|
|
import Data.Maybe
|
2015-11-20 19:50:11 +03:00
|
|
|
import Data.Set
|
2015-11-20 19:36:54 +03:00
|
|
|
import Language.Haskell.Parser
|
|
|
|
import Language.Haskell.Syntax
|
|
|
|
import System.Environment
|
2015-11-18 22:45:23 +03:00
|
|
|
|
|
|
|
|
2015-11-18 01:44:16 +03:00
|
|
|
main :: IO ()
|
2015-11-20 19:36:54 +03:00
|
|
|
main = do
|
|
|
|
args <- getArgs
|
|
|
|
let (a, b) = files args in do
|
|
|
|
a' <- parseModuleFile a
|
|
|
|
b' <- parseModuleFile b
|
|
|
|
return (a', b')
|
|
|
|
return ()
|
|
|
|
|
|
|
|
parseModuleFile :: FilePath -> IO (ParseResult HsModule)
|
|
|
|
parseModuleFile file = do
|
|
|
|
contents <- readFile file
|
|
|
|
return $ parseModule contents
|
|
|
|
|
|
|
|
files (a : as) = (a, file as) where
|
|
|
|
file (a : as) = a
|