@@ -42,7 +42,7 @@ psciLet = Let <$> (P.Let <$> (P.reserved "let" *> P.indented *> C.mark (many1 (C
4242--
4343parseCommand :: String -> Either ParseError Command
4444parseCommand = P.runIndentParser "" $ choice
45− [ P.whiteSpace *> char ':' *> (psciHelp <|> psciImport <|> psciLoadFile <|> psciQuit <|> psciReload <|> psciTypeOf <|> psciKindOf)
45+ [ P.whiteSpace *> char ':' *> (psciHelp <|> psciImport <|> psciLoadFile <|> psciQuit <|> psciReload <|> psciTypeOf <|> psciKindOf <|> psciBrowse)
4646 , try psciLet
4747 , psciExpression
4848 ] <* eof
@@ -97,3 +97,9 @@ psciTypeOf = TypeOf <$> (char 't' *> P.whiteSpace *> P.parseValue)
9797--
9898psciKindOf :: Parsec String P.ParseState Command
9999psciKindOf = KindOf <$> (char 'k' *> P.whiteSpace *> P.parseType)
100+
101+-- |
102+-- Parses 'Commands.Browse' command.
103+--
104+psciBrowse :: Parsec String P.ParseState Command
105+psciBrowse = Browse <$> (char 'b' *> P.whiteSpace *> P.moduleName)