[GHC] #12094: Unlifted types and pattern synonym signatures

GHC ghc-devs at haskell.org
Mon May 23 14:08:48 UTC 2016


#12094: Unlifted types and pattern synonym signatures
-------------------------------------+-------------------------------------
        Reporter:  akio              |                Owner:
            Type:  bug               |               Status:  merge
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  8.0.1
  checker)                           |             Keywords:
      Resolution:                    |  PatternSynonyms
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D2255
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Iceland_jack):

 Bidirectional form also works

 {{{#!hs
 -- ghci> let a@(I# Zero) = I# Zero in a
 -- 0
 pattern Zero = 0#
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12094#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list