[GHC] #11971: Unify error messages that suggest enabling extensions

#11971: Unify error messages that suggest enabling extensions -------------------------------------+------------------------------------- Reporter: cocreature | Owner: Type: feature | Status: new request | Priority: low | Milestone: Component: Compiler | Version: 7.10.3 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The error messages that suggest to enable some extension currently have a lot of slightly different forms: Here are just a few examples (I’ll do a longer search if we come to a consensus) - Did you mean to enable _? - Did you mean to use _? - Perhaps you meant to use _? - Perhaps you intended to use _? These error messages are parsed by haskell-mode (and maybe other tooling as well) which is quite hard since they have so many different forms. I propose to change all of those to “Did you mean to enable _?” since that I prefer enable over use here, but I don’t have any strong feelings towards the exact message as long as it’s consistent. So if the majority prefers something else I’m fine with that. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11971 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11971: Unify error messages that suggest enabling extensions -------------------------------------+------------------------------------- Reporter: cocreature | Owner: Type: feature request | Status: new Priority: low | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Description changed by cocreature: @@ -3,2 +3,2 @@ - Here are just a few examples (I’ll do a longer search if we come to a - consensus) + Here are just a few examples (I’ll do a longer search if there is a + consensus to move forward with this ticket) New description: The error messages that suggest to enable some extension currently have a lot of slightly different forms: Here are just a few examples (I’ll do a longer search if there is a consensus to move forward with this ticket) - Did you mean to enable _? - Did you mean to use _? - Perhaps you meant to use _? - Perhaps you intended to use _? These error messages are parsed by haskell-mode (and maybe other tooling as well) which is quite hard since they have so many different forms. I propose to change all of those to “Did you mean to enable _?” since that I prefer enable over use here, but I don’t have any strong feelings towards the exact message as long as it’s consistent. So if the majority prefers something else I’m fine with that. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11971#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11971: Unify error messages that suggest enabling extensions -------------------------------------+------------------------------------- Reporter: cocreature | Owner: Type: feature request | Status: new Priority: low | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): I'm all for it! Let's not just use the same string, but rather put the string into a function and call that. I don't feel strongly about wording -- ask users. My instinct is "Perhaps you meant to use _". Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11971#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11971: Unify error messages that suggest enabling extensions -------------------------------------+------------------------------------- Reporter: cocreature | Owner: Type: feature request | Status: new Priority: low | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by cocreature): Replying to [comment:2 simonpj]:
Let's not just use the same string, but rather put the string into a function and call that.
That’s what I was planning to do. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11971#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC