aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Parser.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Parser.hs')
-rw-r--r--src/Parser.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Parser.hs b/src/Parser.hs
index 01dda6e..fa8e59b 100644
--- a/src/Parser.hs
+++ b/src/Parser.hs
@@ -385,7 +385,7 @@ parseImport :: Parser Command
parseImport = do
_ <- string ":import" <* sc <?> "import instruction"
path <- importPath
- ns <- try (sc *> (namespace <|> string ".")) <|> (eof >> return "")
+ ns <- try (sc *> (namespace <|> string ".")) <|> return ""
pure $ Import (path ++ ".bruijn") ns
parseInput :: Parser Command