Consistent error message suggestions for using language extensions
I saw this error today in 7.10.1:
Parse error: naked expression at top level
Perhaps you intended to use TemplateHaskell
I'm glad it suggests using !TemplateHaskell; however, the suggestion seems incomplete. I did in fact intend to use Template Haskell, but I think this suggestion implies the language extension though it doesn't explicitly say so.
I believe other error message suggestions are more explicit about mentioning language extension, e.g. use -XFlexibleContexts
, which refers to the flag.
I'm just bringing this issue up to request a consistent error message suggestion format for language extensions that explicitly mentions “language extension” or -X
. (It may be that the above message is the only one not doing that; I haven't checked.)
Edited by spl