@@ -39,10 +39,6 @@ module Network.Wai.Handler.Warp (
3939 , runEnv
4040 , runSettings
4141 , runSettingsSocket
42− -- ** Low level run functions
43− , runSettingsConnection
44− , runSettingsConnectionMaker
45− , runSettingsConnectionMakerSecure
4642 -- * Settings
4743 , Settings
4844 , defaultSettings
@@ -88,10 +84,19 @@ module Network.Wai.Handler.Warp (
8884 , defaultOnExceptionResponse
8985 , exceptionResponseForDebug
9086 -- * Data types
91− , Transport (..)
9287 , HostPreference (..)
9388 , Port
9489 , InvalidRequest (..)
90+ -- * Per-request utilities
91+ , pauseTimeout
92+ -- * Internal
93+ -- | The following APIs will move to Network.Wai.Handler.Warp.Internal.
94+
95+ -- ** Low level run functions
96+ , runSettingsConnection
97+ , runSettingsConnectionMaker
98+ , runSettingsConnectionMakerSecure
99+ , Transport (..)
95100 -- * Connection
96101 , Connection (..)
97102 , socketConnection
@@ -106,9 +111,6 @@ module Network.Wai.Handler.Warp (
106111 , SendFile
107112 , sendFile
108113 , readSendFile
109− -- * Per-request utilities
110− , pauseTimeout
111− -- * Internal
112114 -- ** Version
113115 , warpVersion
114116 -- ** Data types
@@ -150,7 +152,7 @@ import Network.Wai.Handler.Warp.Types
150152-- | Port to listen on. Default value: 3000
151153--
152154-- Since 2.1.0
153−setPort :: Int -> Settings -> Settings
155+setPort :: Port -> Settings -> Settings
154156setPort x y = y { settingsPort = x }
155157
156158-- | Interface to bind to. Default value: HostIPv4
@@ -238,7 +240,7 @@ setNoParsePath x y = y { settingsNoParsePath = x }
238240-- | Get the listening port.
239241--
240242-- Since 2.1.1
241−getPort :: Settings -> Int
243+getPort :: Settings -> Port
242244getPort = settingsPort
243245
244246-- | Get the interface to bind to.