Skip to content

Commit

Permalink
include list and table modules by default
Browse files Browse the repository at this point in the history
  • Loading branch information
KMahoney committed Aug 15, 2009
1 parent b19c7be commit 4de3ea4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dochi/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ findModule name = do CompileState _ e u <- get
[] -> throwError $ "Unknown word " ++ name
l -> throwError $ "Conflict: word " ++ name ++ " in " ++ (show l)
where f u = map fst . filter (elem name . snd) . filter (flip elem u . fst)
defaultModules = ["core"]
defaultModules = ["core", "list", "table"]


compileAST :: AST -> Compiler ()
Expand Down
2 changes: 1 addition & 1 deletion Dochi/REPL.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ completion opts st str = return $ mapMaybe f $ filtered ++ all
where f k = if (take (length str) k) == str then (Just k) else Nothing
filtered = concatMap snd $ filter (flip elem modules . fst) $ environment st
all = concatMap (\(m,w) -> map ((m ++ ".") ++) w) $ environment st
modules = ("core":current opts:using opts)
modules = ["core", "list", "table"] ++ (current opts:using opts)


runREPL :: Options -> ChiState -> IO ()
Expand Down

0 comments on commit 4de3ea4

Please sign in to comment.