[GHC] #12006: Can't infer constraint of pattern synonyms
GHC
ghc-devs at haskell.org
Tue May 3 11:51:35 UTC 2016
#12006: Can't infer constraint of pattern synonyms
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.1
Resolution: | Keywords:
| PatternSynonyms
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 simonpj):
Yes, I think in principle it should be possible to infer a type that works
for both builder and matcher. I'm not quite sure how hard that would be;
probably not terrible.
Of course you can always work around the difficulty by providing a
signature.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12006#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list