Skip to content

Commit 00b16cf

Browse files
committed
Removed unexported type class function from documentation
1 parent 67b31fc commit 00b16cf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Network/JsonRpc/Server.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ import Control.Applicative ((<$>))
8282
-- | Creates a method from a name, function, and parameter descriptions.
8383
-- The parameter names must be unique.
8484
toMethod :: (MethodParams f p m r, A.ToJSON r, Monad m) => Text -> f -> p -> Method m
85-
toMethod name f params = let f' args = A.toJSON <$> apply f params args
85+
toMethod name f params = let f' args = A.toJSON <$> _apply f params args
8686
in Method name f'
8787

8888
-- | Creates a set of methods to be called by name. The names must be unique.

src/Network/JsonRpc/Types.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ infixr :+:
6262
-- every argument of 'f' and is terminated by @()@. The return type
6363
-- of 'f' is @RpcResult m r@. This class is treated as closed.
6464
class (Monad m, Functor m, A.ToJSON r) => MethodParams f p m r | f -> p m r, p m r -> f where
65-
apply :: f -> p -> Args -> RpcResult m r
65+
_apply :: f -> p -> Args -> RpcResult m r
6666

6767
instance (Monad m, Functor m, A.ToJSON r) => MethodParams (RpcResult m r) () m r where
68-
apply _ _ (Right ar) | not $ V.null ar =
68+
_apply _ _ (Right ar) | not $ V.null ar =
6969
throwError $ rpcError (-32602) "Too many unnamed arguments"
70-
apply res _ _ = res
70+
_apply res _ _ = res
7171

7272
instance (A.FromJSON a, MethodParams f p m r) => MethodParams (a -> f) (a :+: p) m r where
73-
apply f (param :+: ps) args = arg >>= \a -> apply (f a) ps nextArgs
73+
_apply f (param :+: ps) args = arg >>= \a -> _apply (f a) ps nextArgs
7474
where arg = either (parseArg name) return =<<
7575
(Left <$> lookupValue) `mplus` (Right <$> paramDefault param)
7676
lookupValue = either (lookupArg name) (headArg name) args

0 commit comments

Comments
 (0)