[GHC] #12579: Allowed to create non-alphanumeric data / newtype constructor that cannot be used

#12579: Allowed to create non-alphanumeric data / newtype constructor that cannot be used -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 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 can't remember if this had been filed before but this is present in both 7.8.4 and 8.0.1: {{{ Prelude> newtype A = (****) Int }}} There is no way to use the constructor `****`: {{{ Prelude> :i A newtype A = **** Int -- Defined at <interactive>:3:1 Prelude> :i **** Top level: Not in scope: ‘****’ Prelude> :t (****) <interactive>:1:1: Not in scope: ‘****’ Prelude> }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12579 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12579: Allowed to create non-alphanumeric data / newtype constructor that cannot be used -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: duplicate | 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 mpickering): * status: new => closed * resolution: => duplicate Comment: See #12051 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12579#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12579: Allowed to create non-alphanumeric data / newtype constructor that cannot be used -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: duplicate | 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 Iceland_jack): Thanks Matthew! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12579#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC