summaryrefslogtreecommitdiff
path: root/utils/hpc
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-07-03 01:19:59 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2015-07-04 10:36:54 +0200
commit69beef56a4c020d08e1b0243d4c1a629f972e019 (patch)
tree73b92a2a3f0821c7dd26ba4678d964de4aaf95ce /utils/hpc
parent889c81c657b5719a8f4091099b7bf186127e9f53 (diff)
downloadhaskell-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/hpc')
-rw-r--r--utils/hpc/HpcParser.y16
1 files changed, 0 insertions, 16 deletions
diff --git a/utils/hpc/HpcParser.y b/utils/hpc/HpcParser.y
index 5f8bf903bb..bff9530384 100644
--- a/utils/hpc/HpcParser.y
+++ b/utils/hpc/HpcParser.y
@@ -1,20 +1,4 @@
{
-{-# LANGUAGE BangPatterns #-} -- required for versions of Happy before 1.18.6
-{-# OPTIONS -Wwarn -XNoMonomorphismRestriction #-}
--- The NoMonomorphismRestriction deals with a Happy infelicity
--- With OutsideIn's more conservativ monomorphism restriction
--- we aren't generalising
--- notHappyAtAll = error "urk"
--- which is terrible. Switching off the restriction allows
--- the generalisation. Better would be to make Happy generate
--- an appropriate signature.
---
--- The above warning suppression flag is 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
--- for details
-
module HpcParser where
import HpcLexer