[GHC] #13600: surprising error message with bang pattern
GHC
ghc-devs at haskell.org
Fri Apr 21 12:06:48 UTC 2017
#13600: surprising error message with bang pattern
-------------------------------------+-------------------------------------
Reporter: andrewufrank | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.2
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64
Type of failure: Poor/confusing | (amd64)
error message | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
Ha ha, Matthew is right!
Maybe it would help if, when GHC sees an infix definition for `(!)`, and
the `!` immediately precedes the second argument, we suggested the
possibility of bang patterns? To suppress the warning, we'd suggest
adding a space, thus
{{{
f4 ! x = ...
}}}
I think that'd be useful, if someone wants to try.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13600#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list