[GHC] #12018: Equality constraint not available in pattern type signature (GADTs/ScopedTypeVariables)
GHC
ghc-devs at haskell.org
Fri Jul 7 18:56:17 UTC 2017
#12018: Equality constraint not available in pattern type signature
(GADTs/ScopedTypeVariables)
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner: (none)
Type: bug | Status: new
Priority: lowest | Milestone:
Component: Compiler (Type | Version: 7.10.3
checker) | Keywords: GADTs,
Resolution: | ScopedTypeVariables
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 goldfire):
I frequently find this behavior of GHC frustrating, though I fully
understand why it works the way it does (and indeed don't propose a
change). Perhaps the way forward is to obviate the need for such
signatures by introducing visible type patterns, #11350.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12018#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list