diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-08-10 12:36:26 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-08-10 12:36:26 -0400 |
commit | 22bd67807e8eec78db8895d36fec39b7a8b4a3d0 (patch) | |
tree | cc74c2b2dd58f3b29cff6be2cdf411704765e9b1 /WebSockets.hs | |
parent | f108549cc9d5d863a9eef161a09beb9d7f9c6b10 (diff) | |
download | debug-me-22bd67807e8eec78db8895d36fec39b7a8b4a3d0.tar.gz |
Fix build with websockets-0.10.0.0 which did not support compression.
Diffstat (limited to 'WebSockets.hs')
-rw-r--r-- | WebSockets.hs | 4 |
1 files changed, 2 insertions, 2 deletions
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 |