[GHC] #11727: Allow one type signature for multiple pattern synonyms
GHC
ghc-devs at haskell.org
Fri Jul 1 12:21:23 UTC 2016
#11727: Allow one type signature for multiple pattern synonyms
-------------------------------------+-------------------------------------
Reporter: mpickering | Owner: mpickering
Type: feature request | Status: closed
Priority: normal | Milestone: 8.2.1
Component: Compiler | Version: 7.10.3
Resolution: fixed | Keywords:
| PatternSynonyms
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
| patsyn/should_compile/T11727
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D2083
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by bgamari):
* status: new => closed
* resolution: => fixed
@@ -6,1 +6,1 @@
- {{{
+ {{{#!hs
New description:
There's no reason why we shouldn't allow the same type signature for
multiple pattern synonyms just like ordinary functions.
For example,
{{{#!hs
pattern A,B,C,D :: Int
pattern A = 5
pattern B = 6
pattern C = 7
pattern D = 8
}}}
--
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11727#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list