X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FParsePkgConf.y;h=ac0cebbf6471ad5218e3c4d90fcafab5c6682101;hb=88de2702104eceecf8b2817bed38457b16e740f4;hp=1f6434b468bc28df45e809a8ad8af9d41d96f274;hpb=6b476a9ab73f1d768c548ddef900f9b9e4a0dd6b;p=ghc-hetmet.git diff --git a/compiler/main/ParsePkgConf.y b/compiler/main/ParsePkgConf.y index 1f6434b..ac0cebb 100644 --- a/compiler/main/ParsePkgConf.y +++ b/compiler/main/ParsePkgConf.y @@ -1,5 +1,5 @@ { -{-# OPTIONS -w #-} +{-# OPTIONS -fno-warn-unused-binds -fno-warn-unused-matches -fno-warn-missing-signatures #-} -- The above warning supression flag is a temporary kludge. -- While working on this module you are encouraged to remove it and fix -- any warnings in the module. See @@ -61,7 +61,7 @@ field :: { PackageConfig -> PackageConfig } : VARID '=' pkgid {% case unpackFS $1 of "package" -> return (\p -> p{package = $3}) - _other -> happyError + _ -> happyError } | VARID '=' STRING { id } @@ -102,13 +102,13 @@ field :: { PackageConfig -> PackageConfig } "haddockHTMLs" -> p{haddockHTMLs = map unpackFS $3} "depends" -> p{depends = []} -- empty list only, non-empty handled below - other -> p + _ -> p } | VARID '=' pkgidlist {% case unpackFS $1 of "depends" -> return (\p -> p{depends = $3}) - _other -> happyError + _ -> happyError } pkgid :: { PackageIdentifier }