[GHC] #15857: Need for better warnings arising from StarIsType extension

#15857: Need for better warnings arising from StarIsType extension -------------------------------------+------------------------------------- Reporter: jrp | Owner: (none) Type: feature | Status: new request | Priority: low | Milestone: Component: Compiler | Version: 8.6.1 Keywords: StarIsType | Operating System: Unknown/Multiple NoStarIsType | Architecture: | Type of failure: Poor/confusing Unknown/Multiple | error message Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- If I redefine `type (*) = (,)` I am given not given a warning that it doesn't do what I expect, when building with cabal new-repl or cabal new- build, because the `StarIsType` extension is now enabled by default. Instead or a warning, I get (correct but confusing) error messages. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15857 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15857: Need for better warnings arising from StarIsType extension -------------------------------------+------------------------------------- Reporter: jrp | Owner: (none) Type: feature request | Status: new Priority: low | Milestone: Component: Compiler | Version: 8.6.1 Resolution: | Keywords: StarIsType | NoStarIsType Operating System: Unknown/Multiple | Architecture: Type of failure: Poor/confusing | Unknown/Multiple error message | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Description changed by jrp: Old description:
If I redefine `type (*) = (,)` I am given not given a warning that it doesn't do what I expect, when building with cabal new-repl or cabal new- build, because the `StarIsType` extension is now enabled by default. Instead or a warning, I get (correct but confusing) error messages.
New description: If I redefine `type (*) = (,)` I am given not given a warning that it doesn't do what I expect, when building with cabal new-repl or cabal new- build, because the `StarIsType` extension is now enabled by default. Instead of a warning, I get (correct but confusing) error messages. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15857#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15857: Need for better warnings arising from StarIsType extension -------------------------------------+------------------------------------- Reporter: jrp | Owner: (none) Type: feature request | Status: new Priority: low | Milestone: Component: Compiler | Version: 8.6.1 Resolution: | Keywords: StarIsType | NoStarIsType Operating System: Unknown/Multiple | Architecture: Type of failure: Poor/confusing | Unknown/Multiple error message | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by int-index): I designed `-Wstar-binder` specifically for this purpose, and it is enabled by default. {{{ Prelude> :set -XTypeOperators Prelude> type (*) = (,) <interactive>:2:7: warning: [-Wstar-binder] Found binding occurrence of ‘*’ yet StarIsType is enabled. NB. To use (or export) this operator in modules with StarIsType, including the definition module, you must qualify it. }}} Are you not seeing it for some reason or do you think the wording needs improvement? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15857#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC