Use same version check as in cabal file; fix typo in comment.
This commit is contained in:
parent
17287b5556
commit
996d3e196b
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
module Database.MongoDB.Internal.Network (PortID(..), N.HostName, connectTo) where
|
module Database.MongoDB.Internal.Network (PortID(..), N.HostName, connectTo) where
|
||||||
|
|
||||||
|
|
||||||
#if !MIN_VERSION_network(2, 8, 0)
|
#if !MIN_VERSION_network(2, 9, 0)
|
||||||
|
|
||||||
import qualified Network as N
|
import qualified Network as N
|
||||||
import System.IO (Handle)
|
import System.IO (Handle)
|
||||||
|
@ -20,11 +20,11 @@ import System.IO (Handle, IOMode(ReadWriteMode))
|
||||||
|
|
||||||
|
|
||||||
-- | Wraps network's 'PortNumber'
|
-- | Wraps network's 'PortNumber'
|
||||||
-- Used to easy compatibility between older and newer network versions.
|
-- Used to ease compatibility between older and newer network versions.
|
||||||
newtype PortID = PortNumber N.PortNumber deriving (Show, Eq, Ord)
|
newtype PortID = PortNumber N.PortNumber deriving (Show, Eq, Ord)
|
||||||
|
|
||||||
|
|
||||||
#if !MIN_VERSION_network(2, 8, 0)
|
#if !MIN_VERSION_network(2, 9, 0)
|
||||||
|
|
||||||
-- Unwrap our newtype and use network's PortID and connectTo
|
-- Unwrap our newtype and use network's PortID and connectTo
|
||||||
connectTo :: N.HostName -- Hostname
|
connectTo :: N.HostName -- Hostname
|
||||||
|
|
Loading…
Reference in a new issue