@@ -17,6 +17,11 @@ module Network.Wai.Handler.WarpTLS (
1717 -- * Settings
1818 TLSSettings
1919 , defaultTlsSettings
20+ -- * Smart constructors
21+ , tlsSettings
22+ , tlsSettingsMemory
23+ , tlsSettingsChain
24+ , tlsSettingsChainMemory
2025 -- * Accessors
2126 , certFile
2227 , keyFile
@@ -27,11 +32,6 @@ module Network.Wai.Handler.WarpTLS (
2732 , tlsServerHooks
2833 , onInsecure
2934 , OnInsecure (..)
30− -- * Smart constructors
31− , tlsSettings
32− , tlsSettingsMemory
33− , tlsSettingsChain
34− , tlsSettingsChainMemory
3535 -- * Runner
3636 , runTLS
3737 , runTLSSocket
@@ -163,7 +163,7 @@ data OnInsecure = DenyInsecure L.ByteString
163163
164164----------------------------------------------------------------
165165
166−-- | A smart constructor for 'TLSSettings'.
166+-- | A smart constructor for 'TLSSettings' based on 'defaultTlsSettings'.
167167tlsSettings :: FilePath -- ^ Certificate file
168168 -> FilePath -- ^ Key file
169169 -> TLSSettings
@@ -173,7 +173,7 @@ tlsSettings cert key = defaultTlsSettings {
173173 }
174174
175175-- | A smart constructor for 'TLSSettings' that allows specifying
176−-- chain certificates.
176+-- chain certificates based on 'defaultTlsSettings'.
177177--
178178-- Since 3.0.3
179179tlsSettingsChain
@@ -188,7 +188,7 @@ tlsSettingsChain cert chainCerts key = defaultTlsSettings {
188188 }
189189
190190-- | A smart constructor for 'TLSSettings', but uses in-memory representations
191−-- of the certificate and key
191+-- of the certificate and key based on 'defaultTlsSettings'.
192192--
193193-- Since 3.0.1
194194tlsSettingsMemory
@@ -201,7 +201,7 @@ tlsSettingsMemory cert key = defaultTlsSettings
201201 }
202202
203203-- | A smart constructor for 'TLSSettings', but uses in-memory representations
204−-- of the certificate and key
204+-- of the certificate and key based on 'defaultTlsSettings'.
205205--
206206-- Since 3.0.3
207207tlsSettingsChainMemory