Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
Update src/Servant/QuickCheck/Internal/QuickCheck.hs
Browse files Browse the repository at this point in the history
Co-authored-by: fisx <[email protected]>
  • Loading branch information
maksbotan and fisx authored Jul 31, 2020
1 parent e1a9191 commit 7cc95a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Servant/QuickCheck/Internal/QuickCheck.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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 "")
Expand Down

0 comments on commit 7cc95a8

Please sign in to comment.