X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=Ekitai.hs;h=6c1609ec7047d4b64d4fcaa68d086203eec33502;hb=259904bfc4ca2f8b90381dfdb887750b9bdaf368;hp=e413b67de13c4f5c6ed8412d59d0504178486a6b;hpb=5b8e53984e97f64f62f5c5f607322006dbddfabc;p=ekitaihs.git diff --git a/Ekitai.hs b/Ekitai.hs index e413b67..6c1609e 100644 --- a/Ekitai.hs +++ b/Ekitai.hs @@ -1,10 +1,28 @@ import System.Environment +import System.IO + +import qualified Data.Vector as V +import qualified Brick as B import Parse +import Sim +import Render + +-- ui :: B.Widget () +-- ui = B.str "hello" <+> B.str "World" main = do argv <- getArgs (opts, fname) <- ekitaiOpts argv - putStrLn fname - return 0 + handle <- openFile fname ReadMode + contents <- hGetContents handle + putStr contents + hClose handle + initialState <- buildInitialState $ stringToSim 10 10 contents + endState <- B.defaultMain ekitaiApp initialState + print endState + +-- main :: IO () +-- main = do + -- return 0