As listed in the newManager
docs, you can import defaultManagerSettings
like this:
import Network.HTTP.Client (defaultManagerSettings)
Let's have a look what conduitManagerSettings
is:
conduitManagerSettings :: ManagerSettings
conduitManagerSettings = tlsManagerSettings
In Network.HTTP.Client.TLS
, tlsManagerSettings
is defined as follows:
tlsManagerSettings :: ManagerSettings
tlsManagerSettings = mkManagerSettings def Nothing
Ok, so nothing special here. def
is from the Data.Default
module and therefore defines the default instance. However defaultManagerSettings
specifies all default values.
I wasn't able to track down where the instance Default ManagerSettings
resides. However I think it is safe to assume that mkManagerSettings def Nothing
has the same settings as defaultManagerSettings
.
I personally recommend to use defaultManagerSettings
, because any of these behaviours might change in the future.