
#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