[GHC] #9634: "data X = 1": "Illegal literal in type (use DataKinds to enable): 1"
GHC
ghc-devs at haskell.org
Fri Sep 26 11:40:45 UTC 2014
#9634: "data X = 1": "Illegal literal in type (use DataKinds to enable): 1"
-------------------------------------+-------------------------------------
Reporter: rwbarton | Owner:
Type: bug | Status: closed
Priority: low | Milestone:
Component: Compiler | Version: 7.9
(Type checker) | Keywords:
Resolution: fixed | Architecture: Unknown/Multiple
Operating System: | Difficulty: Unknown
Unknown/Multiple | Blocked By:
Type of failure: | Related Tickets:
None/Unknown |
Test Case: |
typecheck/should_fail/T9634 |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Changes (by simonpj):
* status: new => closed
* testcase: => typecheck/should_fail/T9634
* resolution: => fixed
Comment:
Good point, thank you. We now get
{{{
T9634.hs:3:10:
Cannot parse data constructor in a data/newtype declaration: 1
}}}
whether or not `DataKinds` is on
Simon
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9634#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list