summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-08-10 12:36:26 -0400
committerJoey Hess <joeyh@joeyh.name>2017-08-10 12:36:26 -0400
commit22bd67807e8eec78db8895d36fec39b7a8b4a3d0 (patch)
treecc74c2b2dd58f3b29cff6be2cdf411704765e9b1
parentf108549cc9d5d863a9eef161a09beb9d7f9c6b10 (diff)
downloaddebug-me-22bd67807e8eec78db8895d36fec39b7a8b4a3d0.tar.gz
Fix build with websockets-0.10.0.0 which did not support compression.
-rw-r--r--CHANGELOG6
-rw-r--r--WebSockets.hs4
2 files changed, 8 insertions, 2 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 65142bc..bbad328 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,9 @@
+debug-me (1.20170521) unstable; urgency=medium
+
+ * Fix build with websockets-0.10.0.0 which did not support compression.
+
+ -- Joey Hess <id@joeyh.name> Thu, 10 Aug 2017 12:35:44 -0400
+
debug-me (1.20170520) unstable; urgency=medium
* debug-me is available in Debian unstable.
diff --git a/WebSockets.hs b/WebSockets.hs
index 2a0eb40..c2fcb95 100644
--- a/WebSockets.hs
+++ b/WebSockets.hs
@@ -92,7 +92,7 @@ instance WebSocketsData WireProtocol where
WireProtocolError
(Data.Aeson.decode s)
_ -> WireProtocolError "received unknown websocket message"
-#if MIN_VERSION_websockets(0,10,0)
+#if MIN_VERSION_websockets(0,11,0)
fromDataMessage = fromLazyByteString . fromDataMessage
#endif
@@ -118,7 +118,7 @@ supportedWireVersions = [WireVersion "1"]
connectionOptions :: ConnectionOptions
connectionOptions = defaultConnectionOptions
-#if MIN_VERSION_websockets(0,10,0)
+#if MIN_VERSION_websockets(0,11,0)
-- Enable compression.
{ connectionCompressionOptions =
PermessageDeflateCompression defaultPermessageDeflate