From 4256d1812062d566163e5797c75e4ede57669a7e Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Mon, 30 Jul 2018 16:42:15 -0400 Subject: Enable `-Werror` and a reasonable set of warnings Instead of using `-Weverything` and turning warnings off as they become problematic, enable `-Werror` and turn on a specific set of warnings judged to have high signal-to-noise ratio. Fix up all instances of those warnings in the code. These warnings are all available in GHC 8.0.1, which is the default in the current Debian (Debian 9). --- src/Internal/HMAC.chs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/Internal/HMAC.chs') diff --git a/src/Internal/HMAC.chs b/src/Internal/HMAC.chs index 88ac1fb..2151785 100644 --- a/src/Internal/HMAC.chs +++ b/src/Internal/HMAC.chs @@ -13,16 +13,13 @@ -- the License. {-# OPTIONS_GHC -Wno-missing-methods #-} -{-# OPTIONS_GHC -Wno-orphans #-} module Internal.HMAC ( mallocHMACCtx , hmacInitEx, hmacUpdate, hmacFinal ) where -import Foreign - (FinalizerPtr, ForeignPtr, Ptr, Storable(alignment, sizeOf), - addForeignPtrFinalizer, mallocForeignPtr, withForeignPtr) +import Foreign (FinalizerPtr, ForeignPtr, Ptr, Storable(alignment, sizeOf)) import Foreign.C.Types import Foreign.Ptr.Cast (asVoidPtr) -- cgit v1.2.3