king: more warnery

This commit is contained in:
pilfer-pandex 2020-11-03 11:29:51 -08:00 committed by Brendan Hay
parent 491034b4eb
commit 0567f24959
No known key found for this signature in database
GPG Key ID: 80E915C54A7C457D
7 changed files with 17 additions and 11 deletions

View File

@ -64,6 +64,7 @@ library:
- -fwarn-incomplete-patterns
- -fwarn-unused-binds
- -fwarn-unused-imports
- -Wwarn
- -O2
executables:

View File

@ -18,9 +18,7 @@ import qualified Control.Exception as E
import qualified Control.Monad.Catch as C ()
import qualified Data.Acquire.Internal as Act
import Control.Applicative (Applicative(..))
import Control.Monad (ap, liftM)
import Control.Monad.IO.Unlift (MonadIO(..), MonadUnliftIO, withRunInIO)
import Control.Monad.IO.Unlift (MonadUnliftIO, withRunInIO)
import Control.Monad.Reader
import Data.Typeable (Typeable)

View File

@ -6,9 +6,11 @@ license-file: LICENSE
library:
source-dirs: lib
ghc-options:
- -fwarn-incomplete-patterns
- -fwarn-unused-binds
- -fwarn-unused-imports
- -Wall
- -Werror
- -Wno-type-defaults
- -Wno-unused-matches
- -Wno-name-shadowing
- -O2
dependencies:

View File

@ -9,7 +9,7 @@ ghc-options:
- -Wno-type-defaults
- -Wno-unused-matches
- -Wno-name-shadowing
- -Wno-unused-do-bind
- -Wno-unbanged-strict-patterns
- -O2
library:

View File

@ -4,6 +4,9 @@
-- combination with 'deriveNoun' which generates an unreachable pattern.
{-# OPTIONS_GHC -Wno-overlapping-patterns #-}
-- Hack. See comment above instance ToNoun H.StdMethod
{-# OPTIONS_GHC -Wno-orphans #-}
{-|
Types used in both Events and Effects.
-}

View File

@ -3,7 +3,6 @@ module Main where
import Prelude
import Urbit.TermSize (liveTermSize)
import System.IO (getLine)
main :: IO ()
main = do

View File

@ -9,9 +9,12 @@ dependencies:
- unix
ghc-options:
- -fwarn-incomplete-patterns
- -fwarn-unused-binds
- -fwarn-unused-imports
- -Wall
- -Werror
- -Wno-type-defaults
- -Wno-unused-matches
- -Wno-name-shadowing
- -Wno-unused-do-bind
- -O2
library: