DEBUG is always replaced as 1 when CPP pragma is on
Trying to compile the following code:
{-# LANGUAGE CPP #-}
data Level = DEBUG
results in error:
Test.hs:2:14:
Illegal literal in type (use DataKinds to enable): 1
which is of course an error.
Trac metadata
Trac field | Value |
---|---|
Version | 7.8.4 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler (Parser) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |