File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ script:
92
92
93
93
# this builds all libraries and executables
94
94
# (including tests)
95
- - cabal-1.18 build
95
+ - cabal-1.18 build --ghc-options=-Werror
96
96
97
97
- cabal-1.18 test
98
98
- cabal-1.18 check
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE MultiParamTypeClasses,
1
+ {-# LANGUAGE CPP,
2
+ MultiParamTypeClasses,
2
3
Rank2Types,
3
4
TypeOperators,
4
5
OverloadedStrings #-}
5
6
7
+ #if MIN_VERSION_mtl(2,2,1)
8
+ {-# OPTIONS_GHC -fno-warn-deprecations #-}
9
+ #endif
10
+
6
11
-- | Functions for implementing the server side of JSON RPC 2.0.
7
12
-- See <http://www.jsonrpc.org/specification>.
8
13
module Network.JsonRpc.Server (
@@ -40,8 +45,8 @@ import qualified Data.Vector as V
40
45
import qualified Data.HashMap.Strict as H
41
46
import Control.Applicative ((<$>) )
42
47
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 )
45
50
46
51
-- $instructions
47
52
-- * Create methods by calling 'toMethod' and providing the method
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE MultiParamTypeClasses,
1
+ {-# LANGUAGE CPP,
2
+ MultiParamTypeClasses,
2
3
FunctionalDependencies,
3
4
FlexibleInstances,
4
5
UndecidableInstances,
5
6
TypeOperators,
6
7
TypeSynonymInstances,
7
8
OverloadedStrings #-}
8
9
10
+ #if MIN_VERSION_mtl(2,2,1)
11
+ {-# OPTIONS_GHC -fno-warn-deprecations #-}
12
+ #endif
13
+
9
14
module Network.JsonRpc.Types ( RpcResult
10
15
, Method (.. )
11
16
, Methods (.. )
You can’t perform that action at this time.
0 commit comments