diff options
author | Thomas Miedema <thomasmiedema@gmail.com> | 2015-07-03 01:19:59 +0200 |
---|---|---|
committer | Thomas Miedema <thomasmiedema@gmail.com> | 2015-07-04 10:36:54 +0200 |
commit | 69beef56a4c020d08e1b0243d4c1a629f972e019 (patch) | |
tree | 73b92a2a3f0821c7dd26ba4678d964de4aaf95ce /utils/genapply/GenApply.hs | |
parent | 889c81c657b5719a8f4091099b7bf186127e9f53 (diff) | |
download | haskell-69beef56a4c020d08e1b0243d4c1a629f972e019.tar.gz |
Replace usages of `-w` by `-fno-warn`s
And remove unused imports and language pragmas.
I checked that the minimum Happy and Alex version requirements, as
listed in aclocal.m4, don't have to change. Before building ghc, I ran:
- cabal install happy==1.19.4 --with-ghc=ghc-7.8.4
- cabal install alex==3.1.0 --with-ghc=ghc-7.6.3
Differential Revision: https://phabricator.haskell.org/D1032
Diffstat (limited to 'utils/genapply/GenApply.hs')
-rw-r--r-- | utils/genapply/GenApply.hs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/utils/genapply/GenApply.hs b/utils/genapply/GenApply.hs index 7ff1b877a0..26b5154395 100644 --- a/utils/genapply/GenApply.hs +++ b/utils/genapply/GenApply.hs @@ -1,6 +1,11 @@ -{-# OPTIONS -cpp -fglasgow-exts #-} -{-# OPTIONS -w #-} --- The above warning suppression flag is a temporary kludge. +{-# LANGUAGE CPP #-} +{-# OPTIONS_GHC -fno-warn-unused-matches #-} +{-# OPTIONS_GHC -fno-warn-unused-binds #-} +{-# OPTIONS_GHC -fno-warn-missing-signatures #-} +{-# OPTIONS_GHC -fno-warn-overlapping-patterns #-} +{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-} +{-# OPTIONS_GHC -fno-warn-name-shadowing #-} +-- The above warning suppression flags are a temporary kludge. -- While working on this module you are encouraged to remove it and fix -- any warnings in the module. See -- http://ghc.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings |