Re: [GHC] #8113: Cannot override ghci builtin commands with :def[!]

#8113: Cannot override ghci builtin commands with :def[!] -------------------------------------+------------------------------------ Reporter: duncan | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by hvr): I've investigated a bit, the culprit seems to be 4f764d06f3b9899c09a6a459a22d4be694ee45d9 where the following diff fragment caused the macro-precedence to be reversed accidentally: {{{#!diff - ':' : rest -> (rest, builtin_commands) -- "::" selects a builtin command - _ -> (str', macros ++ builtin_commands) } -- otherwise prefer macros + ':' : rest -> (rest, ghci_cmds) -- "::" selects a builtin command + _ -> (str', ghci_cmds ++ macros) } -- otherwise prefer macros }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8113#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC