[GHC] #13649: RebindableSyntax causes type errors when 'fail' is not defined, even if not used.
GHC
ghc-devs at haskell.org
Mon May 8 11:44:06 UTC 2017
#13649: RebindableSyntax causes type errors when 'fail' is not defined, even if not
used.
-------------------------------------+-------------------------------------
Reporter: AaronFriel | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1-rc1
Resolution: | Keywords:
| RebindableSyntax
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
Yes I agree... if the pattern returns true to `isIrrefutableHsPat` we
should not look up the fail function.
It'd be great if someone could fix this.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13649#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list