[GHC] #10713: Type family not reducing over data family
#10713: Type family not reducing over data family -------------------------------------+------------------------------------- Reporter: acowley | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 (Type checker) | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------+------------------------------------- Given this code, {{{ type family TEq t s where TEq t t = 'True TEq t s = 'False data family T a }}} I expected this GHCi interaction to reduce: `:kind! TEq (T Int) (T Bool)` But it does not. It does reduce (to `'True`) if you instead ask, `:kind! TEq (T Int) (T Int)` Tested on GHC 7.10.2 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10713> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10713: Type family not reducing over data family -------------------------------------+------------------------------------- Reporter: acowley | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (Type | Version: 7.8.4 checker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thomie): * version: 7.10.2 => 7.8.4 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10713#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10713: Type family not reducing over data family -------------------------------------+------------------------------------- Reporter: acowley | Owner: goldfire Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (Type | Version: 7.8.4 checker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by goldfire): * owner: => goldfire Comment: Good point. I know what is going on here. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10713#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10713: Type family not reducing over data family -------------------------------------+------------------------------------- Reporter: acowley | Owner: goldfire Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (Type | Version: 7.8.4 checker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Richard Eisenberg <eir@…>): In [changeset:"f063bd5413edf40f1b48e0f958410dcb6bf20b68/ghc" f063bd54/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="f063bd5413edf40f1b48e0f958410dcb6bf20b68" Fix #10713. When doing the apartness/flattening thing, we really only need to eliminate non-generative tycons, not *all* families. (Data families are indeed generative!) }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10713#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10713: Type family not reducing over data family -------------------------------------+------------------------------------- Reporter: acowley | Owner: goldfire Type: bug | Status: merge Priority: normal | Milestone: 7.10.3 Component: Compiler (Type | Version: 7.8.4 checker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: indexed- | types/should_compile/T10713 Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by goldfire): * status: new => merge * testcase: => indexed-types/should_compile/T10713 * milestone: => 7.10.3 Comment: All set now. This should be quite straightforward to merge. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10713#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10713: Type family not reducing over data family -------------------------------------+------------------------------------- Reporter: acowley | Owner: goldfire Type: bug | Status: closed Priority: normal | Milestone: 7.10.3 Component: Compiler (Type | Version: 7.8.4 checker) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: indexed- | types/should_compile/T10713 Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged to `ghc-7.10`. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10713#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC