Skip to content

Commit b26bbfc

Browse files
committed
travis: enable -Wall -Werror
1 parent 555038c commit b26bbfc

File tree

21 files changed

+30
-31
lines changed

21 files changed

+30
-31
lines changed

doc/tutorial/tutorial.cabal

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,11 @@ library
4646
, markdown-unlit >= 0.4
4747
, http-client
4848
default-language: Haskell2010
49-
ghc-options: -Wall -Werror -pgmL markdown-unlit
50-
-- to silence aeson-0.10 warnings:
51-
ghc-options: -fno-warn-missing-methods
52-
ghc-options: -fno-warn-name-shadowing
49+
ghc-options: -Wall -pgmL markdown-unlit
5350

5451
test-suite spec
5552
type: exitcode-stdio-1.0
56-
ghc-options:
57-
-Wall -fno-warn-name-shadowing -fno-warn-missing-signatures
53+
ghc-options: -Wall
5854
default-language: Haskell2010
5955
hs-source-dirs: test
6056
main-is: Spec.hs

servant-blaze/servant-blaze.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ library
3131
hs-source-dirs: src
3232
default-language: Haskell2010
3333
include-dirs: include
34+
ghc-options: -Wall

servant-cassava/servant-cassava.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ library
2828
hs-source-dirs: src
2929
default-language: Haskell2010
3030
include-dirs: include
31+
ghc-options: -Wall

servant-client/servant-client.cabal

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ library
6060

6161
test-suite spec
6262
type: exitcode-stdio-1.0
63-
ghc-options:
64-
-Wall -fno-warn-name-shadowing -fno-warn-missing-signatures
63+
ghc-options: -Wall
6564
default-language: Haskell2010
6665
hs-source-dirs: test
6766
main-is: Spec.hs

servant-client/test/Servant/ClientSpec.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import Control.Applicative ((<$>))
2828
import Control.Arrow (left)
2929
import Control.Concurrent (forkIO, killThread, ThreadId)
3030
import Control.Exception (bracket)
31-
import Control.Monad.Trans.Except (ExceptT, throwE, runExceptT)
31+
import Control.Monad.Trans.Except (throwE, runExceptT)
3232
import Data.Aeson
3333
import qualified Data.ByteString.Lazy as BS
3434
import Data.Char (chr, isPrint)

servant-docs/servant-docs.cabal

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,3 @@ test-suite spec
8282
, servant-docs
8383
, string-conversions
8484
default-language: Haskell2010
85-

servant-foreign/src/Servant/Foreign/Internal.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
-- arbitrary programming languages.
88
module Servant.Foreign.Internal where
99

10-
import Control.Lens hiding (cons, List)
10+
import Control.Lens (makePrisms, makeLenses, Getter, (&), (<>~), (%~),
11+
(.~))
1112
#if !MIN_VERSION_base(4,8,0)
1213
import Data.Monoid
1314
#endif

servant-js/servant-js.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ library
5555

5656
executable counter
5757
main-is: counter.hs
58-
ghc-options: -O2 -Wall
58+
ghc-options: -Wall
5959
hs-source-dirs: examples
6060

6161
if flag(example)

servant-js/src/Servant/JS/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module Servant.JS.Internal
4646
, Header
4747
) where
4848

49-
import Control.Lens hiding (List)
49+
import Control.Lens ((^.))
5050
import qualified Data.CharSet as Set
5151
import qualified Data.CharSet.Unicode.Category as Set
5252
import Data.Monoid

servant-lucid/servant-lucid.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ library
3131
hs-source-dirs: src
3232
default-language: Haskell2010
3333
include-dirs: include
34+
ghc-options: -Wall

0 commit comments

Comments
 (0)