Fix compilation error
This commit is contained in:
parent
bcfbcc2918
commit
30ef4e1570
2 changed files with 6 additions and 2 deletions
|
@ -79,7 +79,7 @@ lookupSeedList :: N.HostName -> IO [Host]
|
||||||
-- ^ Retrieves the replica set seed list from the SRV DNS record for the given hostname
|
-- ^ Retrieves the replica set seed list from the SRV DNS record for the given hostname
|
||||||
lookupSeedList hostname = do
|
lookupSeedList hostname = do
|
||||||
rs <- makeResolvSeed defaultResolvConf
|
rs <- makeResolvSeed defaultResolvConf
|
||||||
res <- withResolver rs $ \resolver -> lookupSRV resolver $ "_mongodb._tcp." ++ pack hostname
|
res <- withResolver rs $ \resolver -> lookupSRV resolver $ pack $ "_mongodb._tcp." ++ hostname
|
||||||
case res of
|
case res of
|
||||||
Left _ -> pure []
|
Left _ -> pure []
|
||||||
Right srv -> pure $ map (\(_, _, por, tar) ->
|
Right srv -> pure $ map (\(_, _, por, tar) ->
|
||||||
|
|
|
@ -129,7 +129,11 @@ Benchmark bench
|
||||||
, lifted-base >= 0.1.0.3
|
, lifted-base >= 0.1.0.3
|
||||||
, transformers-base >= 0.4.1
|
, transformers-base >= 0.4.1
|
||||||
, hashtables >= 1.1.2.0
|
, hashtables >= 1.1.2.0
|
||||||
|
, fail
|
||||||
|
, dns
|
||||||
|
, http-types
|
||||||
, criterion
|
, criterion
|
||||||
|
, tls >= 1.3.0
|
||||||
|
|
||||||
if flag(_old-network)
|
if flag(_old-network)
|
||||||
-- "Network.BSD" is only available in network < 2.9
|
-- "Network.BSD" is only available in network < 2.9
|
||||||
|
|
Loading…
Reference in a new issue