diff options
-rw-r--r-- | CHANGELOG | 6 | ||||
-rw-r--r-- | WebSockets.hs | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -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 |