[GHC] #12730: Pattern synonym signature fails with unlifted type

#12730: Pattern synonym signature fails with unlifted type -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- {{{#!hs pattern P2# a b = (# a, b #) }}} works but adding a type signture makes it fail {{{#!hs -- tp0w.hs:130:25-34: error: … -- • Expecting a lifted type, but ‘(# a, b #)’ is unlifted -- • In the type ‘(# a, b #)’ -- Compilation failed. pattern P2# :: a -> b -> (# a, b #) pattern P2# a b = (# a, b #) }}} Same with these {{{#!hs pattern True :: Int# pattern True = 1# pattern False :: Int# pattern False = 0# }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12730 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12730: Pattern synonym signature fails with unlifted type -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: 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): Thanks. This works ok in HEAD. I have not checked the 8.0 branch. Looks like a dup of #12094, which is fixed. Can someone check and close? Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12730#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12730: Pattern synonym signature fails with unlifted type -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.2 Component: Compiler | Version: 8.0.1 Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #12094 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: new => closed * resolution: => duplicate * related: => #12094 * milestone: => 8.0.2 Comment: It indeed works with GHC 8.0.2, so I'll close this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12730#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC