[GHC] #13646: strict patterns with no bindings (e.g. `let !() = ...`) trigger -Wunused-pattern-binds
GHC
ghc-devs at haskell.org
Fri May 5 20:34:47 UTC 2017
#13646: strict patterns with no bindings (e.g. `let !() = ...`) trigger -Wunused-
pattern-binds
-------------------------------------+-------------------------------------
Reporter: exphp | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.2
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 dfeuer):
No objection here. I think exphp's point about the assertion with a
missing function is quite interesting in itself. Simon, do you think it
would be possible to implement a warning when someone applies a bang
pattern, `seq`, or `seq#` to something known to have a function type? That
seems almost always the wrong thing. It's also bad to force something that
will take a dictionary argument, but that seems potentially harder to
detect conservatively.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13646#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list