LANGUAGE pragma is accepted in module body
As pointed out in #13918, the Haskell Report stipulates that,
The LANGUAGE pragma is a file-header pragma. A file-header pragma must precede the module keyword in a source file.
However, GHC accepts this program,
module Hi where
h = {-# LANGUAGE BangPatterns #-} 0
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.0.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler (Parser) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |