Skip to content

GHC ignores pragma due to preceding comment

GHC ignores a {-# OPTIONS -fglasgow-exts #-} pragma because something in the preceding comment block seems to irritate the parser. The attached files demonstrate this, in Trie1.hs the compiler ignores the pragma while Trie2.hs works fine. The only differences are the deleted lines in the comment block on top of the file.

Trac metadata
Trac field Value
Version 6.8.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler (Parser)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information