[GHC] #9632: Promotable type synonyms (or: synonyms to promoted types)

#9632: Promotable type synonyms (or: synonyms to promoted types) -------------------------------------+------------------------------------- Reporter: jstolarek | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler (Type | Version: checker) | Operating System: Keywords: | Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: Difficulty: Unknown | None/Unknown Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- I want to use '''synonyms to promoted types''' in the same places where I can use the '''promoted types''': {{{#!hs {-# LANGUAGE DataKinds, KindSignatures #-} module PromotableTypeSynonyms where data B = T | F data P :: B -> * type B' = B data P' :: B' -> * -- using B' synonym here is currently not allowed }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9632 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9632: Promotable type synonyms (or: synonyms to promoted types) -------------------------------------+------------------------------------- Reporter: jstolarek | Owner: Type: feature | Status: new request | Milestone: Priority: normal | Version: Component: Compiler | Keywords: (Type checker) | Architecture: Unknown/Multiple Resolution: | Difficulty: Unknown Operating System: | Blocked By: Unknown/Multiple | Related Tickets: Type of failure: | None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by goldfire): This is part of the solution to #7961, which I am actively working on. But don't hold your breath -- it won't be done for a few more months, and then I have to convince folks to merge my branch with significant changes in it. If someone else wants to address just this point on a shorter timeline, go ahead! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9632#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9632: Promotable type synonyms (or: synonyms to promoted types) -------------------------------------+------------------------------------- Reporter: jstolarek | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler (Type | Version: 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 jstolarek): Is this fixed by 6746549772c5cc0ac66c0fce562f297f4d4b80a2 ? I don't have latest HEAD to test :-( -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9632#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9632: Promotable type synonyms (or: synonyms to promoted types) -------------------------------------+------------------------------------- Reporter: jstolarek | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler (Type | Version: 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 thomie): This compiles: {{{ {-# LANGUAGE TypeInType #-} module PromotableTypeSynonyms where import Data.Kind data B = T | F data P :: B -> * type B' = B data P' :: B' -> * }}} Note: in case you are on Debian or Ubuntu, you can install always latest HEAD (1 day delay) from here: https://launchpad.net/~hvr/+archive/ubuntu/ghc -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9632#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9632: Promotable type synonyms (or: synonyms to promoted types) -------------------------------------+------------------------------------- Reporter: jstolarek | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler (Type | Version: 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): Worth a regression test if someone could add one. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9632#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9632: Promotable type synonyms (or: synonyms to promoted types)
-------------------------------------+-------------------------------------
Reporter: jstolarek | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler (Type | Version:
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 Richard Eisenberg

#9632: Promotable type synonyms (or: synonyms to promoted types) -------------------------------------+------------------------------------- Reporter: jstolarek | Owner: Type: feature request | Status: closed Priority: normal | Milestone: Component: Compiler (Type | Version: checker) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | dependent/should_compile/T9632 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * status: new => closed * testcase: => dependent/should_compile/T9632 * resolution: => fixed Comment: Done. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9632#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC