[GHC] #9293: GHCI :unset -XLanguageExtension returns "don't know how to reverse -XLanguageExtension"

#9293: GHCI :unset -XLanguageExtension returns "don't know how to reverse -XLanguageExtension" -------------------------+------------------------------------------------- Reporter: | Owner: jfeltz | Status: new Type: bug | Milestone: Priority: | Version: 7.8.2 normal | Operating System: Unknown/Multiple Component: GHCi | Type of failure: None/Unknown Keywords: | Test Case: :set -XCPP followed by Architecture: x86 | :unset -XCPP Difficulty: | Blocking: Unknown | Blocked By: | Related Tickets: | -------------------------+------------------------------------------------- Any language extension tried appears to not work with :unset. To make matters worse, :unset expands to a number of options, misleading the user into thinking that it should (if that is the case). I eventually had to ask someone on IRC #haskell, leading to the :set -XNoLanguageExtension trick to do what I needed. A fix to :unset is suggested, or removing the misleading/non-working command. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9293 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9293: GHCI :unset -XLanguageExtension returns "don't know how to reverse -XLanguageExtension" -------------------------------------------------+------------------------- Reporter: jfeltz | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86 Type of failure: None/Unknown | Difficulty: Test Case: :set -XCPP followed by | Unknown :unset -XCPP | Blocked By: Blocking: | Related Tickets: -------------------------------------------------+------------------------- Comment (by nomeata): Is `:unset -XExt` the same as `:set -XNoExt`? Probably not for extensions that are on by default. This looks like a ticket suitable for new contributors to GHC. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9293#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9293: GHCI :unset -XLanguageExtension returns "don't know how to reverse -XLanguageExtension" -------------------------------------+------------------------------------- Reporter: jfeltz | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.2 Resolution: | Keywords: newcomer Operating System: | Architecture: x86 Unknown/Multiple | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: :set -XCPP | followed by :unset -XCPP | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * keywords: => newcomer Comment: Also consider `:unset -XNoExt`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9293#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9293: GHCI :unset -XLanguageExtension returns "don't know how to reverse -XLanguageExtension" -------------------------------------+------------------------------------- Reporter: jfeltz | Owner: leroux Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.2 Resolution: | Keywords: newcomer Operating System: | Architecture: x86 Unknown/Multiple | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: :set -XCPP | followed by :unset -XCPP | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by leroux): * owner: => leroux -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9293#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9293: GHCI :unset -XLanguageExtension returns "don't know how to reverse -XLanguageExtension" -------------------------------------------+---------------------------- Reporter: jfeltz | Owner: leroux Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.2 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: x86 Type of failure: None/Unknown | Difficulty: Unknown Test Case: T9293 | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------------+---------------------------- Changes (by leroux): * testcase: :set -XCPP followed by :unset -XCPP => T9293 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9293#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9293: GHCI :unset -XLanguageExtension returns "don't know how to reverse -XLanguageExtension" -------------------------------------------+---------------------------- Reporter: jfeltz | Owner: leroux Type: bug | Status: patch Priority: normal | Milestone: Component: GHCi | Version: 7.8.2 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: x86 Type of failure: None/Unknown | Difficulty: Unknown Test Case: T9293 | Blocked By: Blocking: | Related Tickets: Differential Revisions: Phab:D516 | -------------------------------------------+---------------------------- Changes (by leroux): * status: new => patch * differential: => Phab:D516 Comment: Patch that essentially rewrites {{{:unset -X<ext>}}} to {{{:set -XNo<ext>}}}. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9293#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9293: GHCI :unset -XLanguageExtension returns "don't know how to reverse
-XLanguageExtension"
-------------------------------------------+----------------------------
Reporter: jfeltz | Owner: leroux
Type: bug | Status: patch
Priority: normal | Milestone:
Component: GHCi | Version: 7.8.2
Resolution: | Keywords: newcomer
Operating System: Unknown/Multiple | Architecture: x86
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: T9293 | Blocked By:
Blocking: | Related Tickets:
Differential Revisions: Phab:D516 |
-------------------------------------------+----------------------------
Comment (by Austin Seipp

#9293: GHCI :unset -XLanguageExtension returns "don't know how to reverse -XLanguageExtension" ---------------------------------------------+---------------------------- Reporter: jfeltz | Owner: leroux Type: bug | Status: closed Priority: normal | Milestone: 7.10.1 Component: GHCi | Version: 7.8.2 Resolution: fixed | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: x86 Type of failure: None/Unknown | Difficulty: Unknown Test Case: ghci/scripts/T9293 | Blocked By: Blocking: | Related Tickets: Differential Revisions: Phab:D516 | ---------------------------------------------+---------------------------- Changes (by thomie): * status: patch => closed * testcase: T9293 => ghci/scripts/T9293 * resolution: => fixed * milestone: => 7.10.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9293#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC