diff --git a/changelog.md b/changelog.md
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,8 @@
+0.4.0.2
+=======
+
+- Fixed version check for tls >= 2
+
 0.4.0.1
 =======
 
diff --git a/push-notify-apn.cabal b/push-notify-apn.cabal
--- a/push-notify-apn.cabal
+++ b/push-notify-apn.cabal
@@ -1,5 +1,5 @@
 name:                push-notify-apn
-version:             0.4.0.1
+version:             0.4.0.2
 synopsis:            Send push notifications to mobile iOS devices
 description:
     push-notify-apn is a library and command line utility that can be used to send
diff --git a/src/Network/PushNotify/APN.hs b/src/Network/PushNotify/APN.hs
--- a/src/Network/PushNotify/APN.hs
+++ b/src/Network/PushNotify/APN.hs
@@ -519,7 +519,7 @@
                   , clientSupported=def
                       { supportedVersions=[ TLS12 ]
                       , supportedCiphers=ciphersuite_strong }
-#if MIN_VERSION_tls(0, 2, 0)
+#if MIN_VERSION_tls(2, 0, 0)
                   , clientUseEarlyData=False
 #else
                   , clientEarlyData=Nothing
@@ -545,7 +545,7 @@
                   , clientSupported=def
                       { supportedVersions=[ TLS12 ]
                       , supportedCiphers=ciphersuite_strong }
-#if MIN_VERSION_tls(0, 2, 0)
+#if MIN_VERSION_tls(2, 0, 0)
                   , clientUseEarlyData=False
 #else
                   , clientEarlyData=Nothing
