[GHC] #14033: Invalid newtype causes GHC to panic rather than fail to compile
GHC
ghc-devs at haskell.org
Wed Jul 26 08:06:28 UTC 2017
#14033: Invalid newtype causes GHC to panic rather than fail to compile
-------------------------------------+-------------------------------------
Reporter: InThisStyle10s6p | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.2
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64
Type of failure: Compile-time | (amd64)
crash or panic | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
Happily it's ok in HEAD
{{{
T14033.hs:5:16: error:
• The constructor of a newtype must have exactly one field
but ‘Zero’ has none
• In the definition of data constructor ‘Zero’
In the newtype declaration for ‘Zero’
|
5 | newtype Zero = Zero
| ^
}}}
I think a dup of #13271.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14033#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list