Skip to content

Commit 996d3e1

Browse files
Use same version check as in cabal file; fix typo in comment.
1 parent 17287b5 commit 996d3e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Database/MongoDB/Internal/Network.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
module Database.MongoDB.Internal.Network (PortID(..), N.HostName, connectTo) where
55

66

7-
#if !MIN_VERSION_network(2, 8, 0)
7+
#if !MIN_VERSION_network(2, 9, 0)
88

99
import qualified Network as N
1010
import System.IO (Handle)
@@ -20,11 +20,11 @@ import System.IO (Handle, IOMode(ReadWriteMode))
2020

2121

2222
-- | Wraps network's 'PortNumber'
23-
-- Used to easy compatibility between older and newer network versions.
23+
-- Used to ease compatibility between older and newer network versions.
2424
newtype PortID = PortNumber N.PortNumber deriving (Show, Eq, Ord)
2525

2626

27-
#if !MIN_VERSION_network(2, 8, 0)
27+
#if !MIN_VERSION_network(2, 9, 0)
2828

2929
-- Unwrap our newtype and use network's PortID and connectTo
3030
connectTo :: N.HostName -- Hostname

0 commit comments

Comments
 (0)