mirror of
https://github.com/ilyakooo0/servant-quickcheck.git
synced 2024-11-21 19:54:21 +03:00
Update src/Servant/QuickCheck/Internal/QuickCheck.hs
Co-authored-by: fisx <mf@zerobuzz.net>
This commit is contained in:
parent
e1a919127a
commit
7cc95a8120
@ -42,11 +42,10 @@ withServantServer api = withServantServerAndContext api EmptyContext
|
||||
-- /Since 0.0.0.0/
|
||||
#if MIN_VERSION_servant_server(0,18,0)
|
||||
withServantServerAndContext :: (HasServer a ctx, HasContextEntry (ctx .++ DefaultErrorFormatters) ErrorFormatters)
|
||||
=> Proxy a -> Context ctx -> IO (Server a) -> (BaseUrl -> IO r) -> IO r
|
||||
#else
|
||||
withServantServerAndContext :: HasServer a ctx
|
||||
=> Proxy a -> Context ctx -> IO (Server a) -> (BaseUrl -> IO r) -> IO r
|
||||
#endif
|
||||
=> Proxy a -> Context ctx -> IO (Server a) -> (BaseUrl -> IO r) -> IO r
|
||||
withServantServerAndContext api ctx server t
|
||||
= withApplication (return . serveWithContext api ctx =<< server) $ \port ->
|
||||
t (BaseUrl Http "localhost" port "")
|
||||
|
Loading…
Reference in New Issue
Block a user