diff --git a/CHANGELOG b/CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,8 @@
 # CHANGELOG
 
+- 0.12.5.1 (2018-06-12)
+    * Fix build with GHC 7.6 and 7.8
+
 - 0.12.5.0 (2018-06-01)
     * Add `newClientConnection` (by Renzo Carbonara)
 
diff --git a/src/Network/WebSockets/Client.hs b/src/Network/WebSockets/Client.hs
--- a/src/Network/WebSockets/Client.hs
+++ b/src/Network/WebSockets/Client.hs
@@ -131,7 +131,7 @@
     write   <- encodeMessages protocol ClientConnection stream
     sentRef <- newIORef False
 
-    pure $ Connection
+    return $ Connection
         { connectionOptions   = opts
         , connectionType      = ClientConnection
         , connectionProtocol  = protocol
diff --git a/websockets.cabal b/websockets.cabal
--- a/websockets.cabal
+++ b/websockets.cabal
@@ -1,5 +1,5 @@
 Name:    websockets
-Version: 0.12.5.0
+Version: 0.12.5.1
 
 Synopsis:
   A sensible and clean way to write WebSocket-capable servers in Haskell.
