X-Git-Url: https://ruin.nu/git/?p=proglang.git;a=blobdiff_plain;f=Typechecker.hs;h=87054767c896ee26b405b0af976f0b4bd09f5050;hp=2e205b7d0d516554e7d6909e9bbcf31d066898ee;hb=b2a94f77235a88731d63a1251f53720f869492c8;hpb=9d0e3c89b286456549c68a816d0729f193498f6a diff --git a/Typechecker.hs b/Typechecker.hs index 2e205b7..8705476 100644 --- a/Typechecker.hs +++ b/Typechecker.hs @@ -39,7 +39,7 @@ run v p s = let ts = myLLexer s in case p ts of Ok (Program s) -> do putStrLn "\nParse Successful!" showTree v (Program s) - runStateT (mapM typeCheckStm s) empty + runStateT (mapM typeCheckStm s) [empty] return () showTree :: (Show a, Print a) => Int -> a -> IO ()