:cd is a top level only command, that is, not allowed in inferior ghci sessions
authorPepe Iborra <mnislaih@gmail.com>
Thu, 11 Jan 2007 13:11:56 +0000 (13:11 +0000)
committerPepe Iborra <mnislaih@gmail.com>
Thu, 11 Jan 2007 13:11:56 +0000 (13:11 +0000)
compiler/ghci/InteractiveUI.hs

index 3fbdcbe..c2fb51d 100644 (file)
@@ -114,7 +114,7 @@ builtin_commands :: [Command]
 builtin_commands = [
   ("add",      tlC$ keepGoingPaths addModule,  False, completeFilename),
   ("browse",    keepGoing browseCmd,           False, completeModule),
-  ("cd",       keepGoing changeDirectory,      False, completeFilename),
+  ("cd",       tlC$ keepGoing changeDirectory, False, completeFilename),
   ("def",      keepGoing defineMacro,          False, completeIdentifier),
   ("e",        keepGoing editFile,             False, completeFilename),
        -- Hugs users are accustomed to :e, so make sure it doesn't overlap