X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FCmdLineParser.hs;h=f6b887e2f6d156e87dd09129b4f950a011cee824;hb=a90dc3907a491bfb478262441534b24fb0eb22f4;hp=dfe756bfee3bd8bf98dfd9626e83049da7dd1ff3;hpb=46bef1c09f499c5b34a00b650614bebfa1d6ba4b;p=ghc-hetmet.git diff --git a/compiler/main/CmdLineParser.hs b/compiler/main/CmdLineParser.hs index dfe756b..f6b887e 100644 --- a/compiler/main/CmdLineParser.hs +++ b/compiler/main/CmdLineParser.hs @@ -32,7 +32,9 @@ data Flag m = Flag flagDeprecated :: Deprecated -- is the flag deprecated? } -data Deprecated = Supported | Deprecated String +data Deprecated = Supported + | Deprecated String + | DeprecatedFullText String data OptKind m -- Suppose the flag is -f = NoArg (m ()) -- -f all by itself @@ -66,6 +68,8 @@ processArgs spec args = process spec args [] [] [] let warns' = case deprecated of Deprecated warning -> L loc ("Warning: " ++ dash_arg ++ " is deprecated: " ++ warning) : warns + DeprecatedFullText warning -> + L loc ("Warning: " ++ warning) : warns Supported -> warns in case processOneArg action rest arg args of Left err -> process spec args spare (L loc err : errs) warns'