From: Tim Chevalier Date: Sun, 6 Apr 2008 20:23:33 +0000 (+0000) Subject: Improve error message for malformed LANGUAGE pragma X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=3023a007dfcaf51813c5504e823cb7e8eea002be Improve error message for malformed LANGUAGE pragma I made the error (which previously said "cannot parse LANGUAGE pragma") slightly more helpful by reminding the user that pragmas should be comma-separated. --- diff --git a/compiler/main/HeaderInfo.hs b/compiler/main/HeaderInfo.hs index 0915e60..a9e2051 100644 --- a/compiler/main/HeaderInfo.hs +++ b/compiler/main/HeaderInfo.hs @@ -196,8 +196,9 @@ checkExtension (L l ext) languagePragParseError :: SrcSpan -> a languagePragParseError loc = - pgmError (showSDoc (mkLocMessage loc ( - text "cannot parse LANGUAGE pragma"))) + pgmError + (showSDoc (mkLocMessage loc ( + text "cannot parse LANGUAGE pragma: comma-separated list expected"))) unsupportedExtnError :: SrcSpan -> String -> a unsupportedExtnError loc unsup =