[GHC] #12381: Type family not reduced
#12381: Type family not reduced -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.2 Component: Compiler | Version: 8.0.1 (Type checker) | 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: -------------------------------------+------------------------------------- Andres pointed out that the following fails to compile with GHC 8.0.1 but succeeds with `master` (f53d761df9762232b54ec57a950d301011cd21f8), {{{#!hs {-# LANGUAGE TypeInType, TypeFamilies #-} module Kinds where import GHC.Types type family G (a :: Type) :: Type type instance G Int = Bool type family F (a :: Type) :: G a type instance F Int = True }}} Error: {{{ Hi.hs:10:23: error: • Expected kind ‘G Int’, but ‘'True’ has kind ‘Bool’ • In the type ‘True’ In the type instance declaration for ‘F’ }}} We should figure out what fixed this so it can hopefully be merged for 8.0.2. I initially suspected the patch cited in #12175 but sadly this doesn't seem to be the case. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12381> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12381: Type family not reduced -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.2 Component: Compiler (Type | Version: 8.0.1 checker) | 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: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => merge -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12381#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12381: Type family not reduced -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.2 Component: Compiler (Type | Version: 8.0.1 checker) | 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 alexvieth):
We should figure out what fixed this
I believe it's #11348. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12381#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12381: Type family not reduced -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.2 Component: Compiler (Type | Version: 8.0.1 checker) | 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): Let's add this as a regression test though. (Redundant perhaps, but still.) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12381#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12381: Type family not reduced -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.2 Component: Compiler (Type | Version: 8.0.1 checker) | 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: | -------------------------------------+------------------------------------- Changes (by kosmikus): * cc: kosmikus (added) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12381#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12381: Type family not reduced -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.2 Component: Compiler (Type | Version: 8.0.1 checker) | 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 Ben Gamari <ben@…>): In [changeset:"a4f2b76661fa2056172b27b9883df1f488b7a0dc/ghc" a4f2b76/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="a4f2b76661fa2056172b27b9883df1f488b7a0dc" testsuite: Add regression test for #12381 Test Plan: Validate Reviewers: austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2408 GHC Trac Issues: #12381, #11348 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12381#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12381: Type family not reduced -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler (Type | Version: 8.0.1 checker) | Resolution: fixed | 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: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed * milestone: 8.0.2 => 8.2.1 Comment: Sadly the fix in #11348 (353d8ae6fafe117a1cac4adf6f029a5baccc2780) is a very large patch which looks to not apply easily. It looks like this will have to wait until 8.2. Sorry everyone! -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12381#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC