[GHC] #13600: surprising error message with bang pattern
GHC
ghc-devs at haskell.org
Fri Apr 21 10:30:04 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 mpickering):
You need to turn on the `BangPatterns` extension, otherwise you are
defining an infix operator `!`. The error message is then accurate as you
have given a type signature for `f4` but then defined `!`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13600#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list