@@ -52,6 +52,7 @@ parserCommandsForHelp =
5252 , " Search for values by type", cmd_search)
5353 , nameArgCmd ["wc", "whocalls"] WhoCalls "List the callers of some name"
5454 , nameArgCmd ["cw", "callswho"] CallsWho "List the callees of some name"
55+ , namespaceArgCmd ["browse"] Browse "List the contents of some namespace"
5556 , nameArgCmd ["total"] TotCheck "Check the totality of a name"
5657 , noArgCmd ["r", "reload"] Reload "Reload current file"
5758 , (["l", "load"], FileArg, "Load a new file"
@@ -136,17 +137,19 @@ parserCommands =
136137 )
137138 ]
138139
139−noArgCmd names command doc =
140+noArgCmd names command doc =
140141 (names, NoArg, doc, noArgs command)
141−nameArgCmd names command doc =
142+nameArgCmd names command doc =
142143 (names, NameArg, doc, fnNameArg command)
143−exprArgCmd names command doc =
144+namespaceArgCmd names command doc =
145+ (names, NamespaceArg, doc, namespaceArg command)
146+exprArgCmd names command doc =
144147 (names, ExprArg, doc, exprArg command)
145−metavarArgCmd names command doc =
148+metavarArgCmd names command doc =
146149 (names, MetaVarArg, doc, fnNameArg command)
147−optArgCmd names command doc =
150+optArgCmd names command doc =
148151 (names, OptionArg, doc, optArg command)
149−proofArgCmd names command doc =
152+proofArgCmd names command doc =
150153 (names, NoArg, doc, proofArg command)
151154
152155pCmd :: P.IdrisParser (Either String Command)
@@ -220,6 +223,11 @@ moduleArg = genArg "module" (fmap toPath P.identifier)
220223 where
221224 toPath n = foldl1' (</>) $ splitOn "." n
222225
226+namespaceArg :: ([String] -> Command) -> String -> P.IdrisParser (Either String Command)
227+namespaceArg = genArg "namespace" (fmap toNS P.identifier)
228+ where
229+ toNS = splitOn "."
230+
223231optArg :: (Opt -> Command) -> String -> P.IdrisParser (Either String Command)
224232optArg cmd name = do
225233 let emptyArgs = do