aboutsummaryrefslogtreecommitdiff
path: root/app/Main.hs
diff options
context:
space:
mode:
authorMarvin Borner2024-11-27 16:18:16 +0100
committerMarvin Borner2024-11-27 16:18:16 +0100
commit02ff39d0ab6488fa8cedb31030130b352e10b3e2 (patch)
tree2fef90f83699831d13dea768e144430e1f60a7a2 /app/Main.hs
parent91d52159a5ac32165dca0edfaf75a19845156551 (diff)
Initial typingHEADmain
Diffstat (limited to 'app/Main.hs')
-rw-r--r--app/Main.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Main.hs b/app/Main.hs
index 06843fc..5d4d978 100644
--- a/app/Main.hs
+++ b/app/Main.hs
@@ -11,6 +11,7 @@ import qualified Data.Text as T
import Language.Mili.Analyzer ( linearity )
import Language.Mili.Parser ( parseProgram )
import Language.Mili.Reducer ( nf )
+import Language.Mili.Typer ( typeCheck )
import Options.Applicative ( (<**>)
, Parser
, execParser
@@ -30,7 +31,7 @@ args :: Parser Args
args = pure $ Args ArgEval
pipeline :: T.Text -> Either String Term
-pipeline program = parseProgram program >>= linearity
+pipeline program = parseProgram program >>= linearity >>= typeCheck
actions :: Args -> IO ()
actions Args { _argMode = ArgEval } = do