[GHC] #12403: Template Haskell boxes tuple types when reifying them
#12403: Template Haskell boxes tuple types when reifying them -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.2 Component: Template | Version: 8.0.1 Haskell | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Incorrect result Unknown/Multiple | at runtime Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Example: {{{#!hs {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE UnboxedTuples #-} module Main where import Language.Haskell.TH data T = T (# Int, Int #) $(return []) main :: IO () main = putStrLn $(reify ''T >>= stringE . pprint) }}} {{{ $ /opt/ghc/8.0.1/bin/ghc -fforce-recomp Constraints.hs [1 of 1] Compiling Main ( Constraints.hs, Constraints.o ) Linking Constraints ... $ ./Constraints data Main.T = Main.T ((,,,) GHC.Types.Int GHC.Types.Int) }}} Patch coming soon. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12403> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12403: Template Haskell boxes unboxed tuple types when reifying them -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.2 Component: Template Haskell | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12403#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12403: Template Haskell boxes unboxed tuple types when reifying them -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: Type: bug | Status: patch Priority: normal | Milestone: 8.0.2 Component: Template Haskell | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2405 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: new => patch * differential: => Phab:D2405 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12403#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12403: Template Haskell boxes unboxed tuple types when reifying them -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: Type: bug | Status: patch Priority: normal | Milestone: 8.0.2 Component: Template Haskell | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2405 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ryan Scott <ryan.gl.scott@…>): In [changeset:"514c4a4741f3881672f1ccc1fe6d08a5d596bb87/ghc" 514c4a4/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="514c4a4741f3881672f1ccc1fe6d08a5d596bb87" Fix Template Haskell reification of unboxed tuple types Summary: Previously, Template Haskell reified unboxed tuple types as boxed tuples with twice the appropriate arity. Fixes #12403. Test Plan: make test TEST=T12403 Reviewers: hvr, goldfire, austin, bgamari Reviewed By: goldfire Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2405 GHC Trac Issues: #12403 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12403#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12403: Template Haskell boxes unboxed tuple types when reifying them -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.2 Component: Template Haskell | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2405 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: patch => merge -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12403#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12403: Template Haskell boxes unboxed tuple types when reifying them -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.2 Component: Template Haskell | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: th/T12403 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2405 Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * testcase: => th/T12403 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12403#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12403: Template Haskell boxes unboxed tuple types when reifying them -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.2 Component: Template Haskell | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: th/T12403 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2405 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ryan Scott <ryan.gl.scott@…>): In [changeset:"acdbd16ffca4f13cfae6eeed045a6fc5969adee2/ghc" acdbd16f/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="acdbd16ffca4f13cfae6eeed045a6fc5969adee2" Move #12403, #12513 users guide notes to 8.2.1 release notes The changes in #12403 and #12513 subtly changed the behavior of Template Haskell reification and splicing. While the old behavior was certainly buggy, it's possible that there's code in the wild that depended on the old behavior to work. To err on the side of caution, I'll postpone these changes to GHC 8.2.1 instead of having them merged into GHC 8.0.2. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12403#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12403: Template Haskell boxes unboxed tuple types when reifying them -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.2 Component: Template Haskell | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: th/T12403 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2405 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: merge => closed * resolution: => fixed Comment: I decided not to merge these per goldfire's advice [https://ghc.haskell.org/trac/ghc/ticket/12513#comment:6 here]. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12403#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12403: Template Haskell boxes unboxed tuple types when reifying them -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.2 Component: Template Haskell | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: th/T12403 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2405 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"3470f82fbd7039f9957761c5a12988fd558d6cb8/ghc" 3470f82f/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="3470f82fbd7039f9957761c5a12988fd558d6cb8" Fix Template Haskell reification of unboxed tuple types Summary: Previously, Template Haskell reified unboxed tuple types as boxed tuples with twice the appropriate arity. Fixes #12403. Test Plan: make test TEST=T12403 Reviewers: hvr, goldfire, austin, bgamari Reviewed By: goldfire Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2405 GHC Trac Issues: #12403 (cherry picked from commit 514c4a4741f3881672f1ccc1fe6d08a5d596bb87) }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12403#comment:8> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12403: Template Haskell boxes unboxed tuple types when reifying them -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Template Haskell | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: th/T12403 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2405 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * milestone: 8.0.2 => 8.2.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12403#comment:9> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12403: Template Haskell boxes unboxed tuple types when reifying them -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Template Haskell | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: th/T12403 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2405 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"3219220db283aa09396fc5fd7fe1668ecbe7a512/ghc" 3219220d/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="3219220db283aa09396fc5fd7fe1668ecbe7a512" Revert "Fix Template Haskell reification of unboxed tuple types" This reverts commit 3470f82fbd7039f9957761c5a12988fd558d6cb8 which we decided not to merge afterall. See #12403. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12403#comment:10> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC