Fix servant-client tests after rebase
This commit is contained in:
parent
aa4b10c9ca
commit
af1b267726
1 changed files with 2 additions and 2 deletions
|
@ -264,12 +264,12 @@ genericClientServer :: Application
|
|||
genericClientServer = serve (Proxy :: Proxy GenericClientAPI) (
|
||||
(\ mx -> case mx of
|
||||
Just x -> return (x*x)
|
||||
Nothing -> throwE $ ServantErr 400 "missing parameter" "" []
|
||||
Nothing -> throwError $ ServantErr 400 "missing parameter" "" []
|
||||
)
|
||||
:<|> nestedServer1
|
||||
)
|
||||
where
|
||||
nestedServer1 _str = nestedServer2 :<|> (maybe (throwE $ ServantErr 400 "missing parameter" "" []) return)
|
||||
nestedServer1 _str = nestedServer2 :<|> (maybe (throwError $ ServantErr 400 "missing parameter" "" []) return)
|
||||
nestedServer2 _int = (\ x y -> return (x + y)) :<|> return ()
|
||||
|
||||
{-# NOINLINE manager #-}
|
||||
|
|
Loading…
Reference in a new issue