[GHC] #14740: Unboxed tuple allowed in context: ((##)) => ()

#14740: Unboxed tuple allowed in context: ((##)) => () -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.2.2 (Parser) | Keywords: UnboxedTuples | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I have a feeling this is not intended {{{ GHCi, version 8.5.20180128: http://www.haskell.org/ghc/ :? for help Prelude> :set -XUnboxedTuples Prelude> let x :: ((##)) => (); x = () Prelude> :t x x :: () Prelude> x () Prelude> }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14740 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14740: Unboxed tuple allowed in context: ((##)) => () -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.5 (Parser) | Resolution: | Keywords: UnboxedTuples Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Iceland_jack): * version: 8.2.2 => 8.5 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14740#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14740: Unboxed tuple allowed in context: ((##)) => () -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.5 (Parser) | Resolution: | Keywords: UnboxedTuples 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): Correct: not intended. If someone would like to investigate I'm happy to help. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14740#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14740: Unboxed tuple allowed in context: ((##)) => () -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: sighingnow Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.5 (Parser) | Resolution: | Keywords: UnboxedTuples Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by sighingnow): * owner: (none) => sighingnow -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14740#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14740: Unboxed tuple allowed in context: ((##)) => () -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: sighingnow Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.5 (Parser) | Resolution: | Keywords: UnboxedTuples Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: T14740 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4359 Wiki Page: | -------------------------------------+------------------------------------- Changes (by sighingnow): * testcase: => T14740 * differential: => Phab:D4359 Comment: In Phab:D4359, `let x :: ((##)) => (); x = ()` will raise an error: {{{ T14740.hs:5:7: Expecting a lifted type, but ‘(# #)’ is unlifted In the type signature: x :: ((# #)) => () }}} But I'm not sure when `-XConstraintKinds` is enabled, whether the declaration `let x :: (()) => (); x = ()` is valid. The documentation of `-XConstraintKinds` says that constraints could be:
Tuples, all of whose component types have kind Constraint.
To my limited knowledge, in Haskell2010 empty tuples can't be used as context constraints. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14740#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14740: Unboxed tuple allowed in context: ((##)) => ()
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner: sighingnow
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.5
(Parser) |
Resolution: | Keywords: UnboxedTuples
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case: T14740
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D4359
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#14740: Unboxed tuple allowed in context: ((##)) => () -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: sighingnow Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.5 (Parser) | Resolution: | Keywords: UnboxedTuples Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: T14740 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4359 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * milestone: => 8.6.1 Comment: Thanks for picking this up, sighingnow! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14740#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14740: Unboxed tuple allowed in context: ((##)) => () -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: sighingnow Type: bug | Status: merge Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.5 (Parser) | Resolution: | Keywords: UnboxedTuples Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: T14740 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4359 Wiki Page: | -------------------------------------+------------------------------------- Changes (by sighingnow): * status: new => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14740#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14740: Unboxed tuple allowed in context: ((##)) => () -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: sighingnow Type: bug | Status: merge Priority: normal | Milestone: 8.4.2 Component: Compiler | Version: 8.5 (Parser) | Resolution: | Keywords: UnboxedTuples Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: T14740 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4359 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * milestone: 8.6.1 => 8.4.2 Comment: It looks like this didn't make it into 8.4.1. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14740#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14740: Unboxed tuple allowed in context: ((##)) => () -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: sighingnow Type: bug | Status: closed Priority: normal | Milestone: 8.4.2 Component: Compiler | Version: 8.5 (Parser) | Resolution: fixed | Keywords: UnboxedTuples Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: T14740 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4359 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged to `ghc-8.4` with 43f63a6b07b183490f17f37d88aa68d00bf49445. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14740#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC