Skip to content

Commit af1b267

Browse files
author
Catherine Galkina
committed
Fix servant-client tests after rebase
1 parent aa4b10c commit af1b267

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

servant-client/test/Servant/ClientSpec.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,12 @@ genericClientServer :: Application
264264
genericClientServer = serve (Proxy :: Proxy GenericClientAPI) (
265265
(\ mx -> case mx of
266266
Just x -> return (x*x)
267-
Nothing -> throwE $ ServantErr 400 "missing parameter" "" []
267+
Nothing -> throwError $ ServantErr 400 "missing parameter" "" []
268268
)
269269
:<|> nestedServer1
270270
)
271271
where
272-
nestedServer1 _str = nestedServer2 :<|> (maybe (throwE $ ServantErr 400 "missing parameter" "" []) return)
272+
nestedServer1 _str = nestedServer2 :<|> (maybe (throwError $ ServantErr 400 "missing parameter" "" []) return)
273273
nestedServer2 _int = (\ x y -> return (x + y)) :<|> return ()
274274

275275
{-# NOINLINE manager #-}

0 commit comments

Comments
 (0)