[GHC] #12228: Make newtype polykinded

#12228: Make newtype polykinded -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: feature | Status: new request | Priority: normal | Milestone: 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: -------------------------------------+------------------------------------- I hate having to give up so much top type safety when I use unlifted types. It seems to me that I should be able to use `newtype` to create new types of kind `#` as well as `*`: {{{#!hs newtype MyWord# = MyWord# Word# newtype GoodStuff# a = GoodStuff (# Int#, a #) }}} In an ideal world, such types would be in Core (so RULES could see them), but I'd be very happy even to just have them in Haskell. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12228 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12228: Make newtype polykinded -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: feature request | Status: new Priority: normal | Milestone: 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 rwbarton): I'm almost certain this is a duplicate of an existing feature request. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12228#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12228: Make newtype polykinded -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: feature request | Status: new Priority: normal | Milestone: 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): https://ghc.haskell.org/trac/ghc/wiki/UnliftedDataTypes is one place to start -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12228#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12228: Make newtype polykinded -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: Type: feature request | Status: closed Priority: normal | Milestone: Component: Compiler (Type | Version: 8.0.1 checker) | Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #1311 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => duplicate * related: => #1311 Comment: There is recent discussion in #1311, so I'll close this one. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12228#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC