master-plan/app/Main.hs

13 lines
344 B
Haskell
Raw Normal View History

{-# LANGUAGE UnicodeSyntax #-}
2017-08-05 04:53:52 +03:00
module Main where
import MasterPlan.Backend.Identity
import MasterPlan.Parser
main IO ()
main = do let filename = "master.plan"
contents <- readFile filename
case runParser filename contents of
Left e -> putStr e
Right v -> putStr $ render v