@@ -152,7 +152,7 @@ import Network.Wai.Handler.Warp.Types
152152-- | Port to listen on. Default value: 3000
153153--
154154-- Since 2.1.0
155−setPort :: Int -> Settings -> Settings
155+setPort :: Port -> Settings -> Settings
156156setPort x y = y { settingsPort = x }
157157
158158-- | Interface to bind to. Default value: HostIPv4
@@ -240,7 +240,7 @@ setNoParsePath x y = y { settingsNoParsePath = x }
240240-- | Get the listening port.
241241--
242242-- Since 2.1.1
243−getPort :: Settings -> Int
243+getPort :: Settings -> Port
244244getPort = settingsPort
245245
246246-- | Get the interface to bind to.