@@ -106,7 +106,7 @@ loadModule :: FilePath -> IO (Either String [P.Module])
106loadModule moduleFile = do
106loadModule moduleFile = do
107 print moduleFile
107 print moduleFile
108 moduleText <- U.readFile moduleFile
108 moduleText <- U.readFile moduleFile
109− return . either (Left . show) Right $ P.runIndentParser P.parseModules moduleText
109+ return . either (Left . show) Right $ P.runIndentParser "" P.parseModules moduleText
111main :: IO ()
111main :: IO ()
@@ -128,7 +128,7 @@ main = do
128 case cmd of
128 case cmd of
129 Empty -> go imports loadedModules
129 Empty -> go imports loadedModules
130 Expression ls -> do
130 Expression ls -> do
131− case P.runIndentParser (P.whiteSpace *> P.parseValue <* Parsec.eof) (unlines ls) of
131+ case P.runIndentParser "" (P.whiteSpace *> P.parseValue <* Parsec.eof) (unlines ls) of
132 Left err -> outputStrLn (show err)
132 Left err -> outputStrLn (show err)
133 Right decl -> handleDeclaration loadedModules imports decl
133 Right decl -> handleDeclaration loadedModules imports decl
134 go imports loadedModules
134 go imports loadedModules