#9634: "data X = 1": "Illegal literal in type (use DataKinds to enable): 1" -------------------------------------+------------------------------------- Reporter: rwbarton | Owner: Type: bug | Status: new Priority: low | Milestone: Component: Compiler | Version: 7.9 (Type checker) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by Simon Peyton Jones <simonpj@…>): In [changeset:"ac157de3cd959a18a71fa056403675e2c0563497/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="ac157de3cd959a18a71fa056403675e2c0563497" Complain about illegal type literals in renamer, not parser A premature complaint was causing Trac #9634. Acutally this change also simplifies the lexer and eliminates duplication. (The renamer was already making the check, as it happens.) }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9634#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler