Skip to content

Commit c721a14

Browse files
committed
Failed CI build on GHC warnings
1 parent 674a11e commit c721a14

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ script:
9292

9393
# this builds all libraries and executables
9494
# (including tests)
95-
- cabal-1.18 build
95+
- cabal-1.18 build --ghc-options=-Werror
9696

9797
- cabal-1.18 test
9898
- cabal-1.18 check

src/Network/JsonRpc/Server.hs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
{-# LANGUAGE MultiParamTypeClasses,
1+
{-# LANGUAGE CPP,
2+
MultiParamTypeClasses,
23
Rank2Types,
34
TypeOperators,
45
OverloadedStrings #-}
56

7+
#if MIN_VERSION_mtl(2,2,1)
8+
{-# OPTIONS_GHC -fno-warn-deprecations #-}
9+
#endif
10+
611
-- | Functions for implementing the server side of JSON RPC 2.0.
712
-- See <http://www.jsonrpc.org/specification>.
813
module Network.JsonRpc.Server (
@@ -40,8 +45,8 @@ import qualified Data.Vector as V
4045
import qualified Data.HashMap.Strict as H
4146
import Control.Applicative ((<$>))
4247
import Control.Monad (liftM)
43-
import Control.Monad.Identity (Identity, runIdentity)
44-
import Control.Monad.Error (ErrorT, runErrorT, throwError)
48+
import Control.Monad.Identity (runIdentity)
49+
import Control.Monad.Error (runErrorT, throwError)
4550

4651
-- $instructions
4752
-- * Create methods by calling 'toMethod' and providing the method

src/Network/JsonRpc/Types.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
{-# LANGUAGE MultiParamTypeClasses,
1+
{-# LANGUAGE CPP,
2+
MultiParamTypeClasses,
23
FunctionalDependencies,
34
FlexibleInstances,
45
UndecidableInstances,
56
TypeOperators,
67
TypeSynonymInstances,
78
OverloadedStrings #-}
89

10+
#if MIN_VERSION_mtl(2,2,1)
11+
{-# OPTIONS_GHC -fno-warn-deprecations #-}
12+
#endif
13+
914
module Network.JsonRpc.Types ( RpcResult
1015
, Method (..)
1116
, Methods (..)

0 commit comments

Comments
 (0)