Skip to content

Commit

Permalink
Use network-2.7 for more informative "connection failed" errors (#586)
Browse files Browse the repository at this point in the history
* Use network-2.7

* Fix compilation, better comments
  • Loading branch information
Artyom Kazak committed Feb 1, 2019
1 parent 8d685c2 commit 9cbb237
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ extra-deps:
- network-uri-static-0.1.1.0
- list-t-1.0.1 # 1.0.0.1 doesn't build
- unliftio-0.2.10 # for pooled concurrency utils in UnliftIO.Async
- network-2.7.0.2 # to get nicer errors when connections fail
- HaskellNet-SSL-0.3.4.1 # first version to support network-2.7

# the following are just not on Stackage (and most of these were present in
# LTS-11 but got evicted in LTS-12)
Expand Down
4 changes: 4 additions & 0 deletions tools/bonanza/src/Bonanza/Metrics.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}

-- Network.BSD got deprecated in network-2.7; this line won't be needed once we
-- move to network-3.0 because then we can use the network-bsd package
{-# OPTIONS_GHC -Wno-deprecations #-}

module Bonanza.Metrics
( Stats (..)
, debugCollectd
Expand Down
5 changes: 4 additions & 1 deletion tools/bonanza/src/Bonanza/Streaming/Kibana.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
{-# LANGUAGE StandaloneDeriving #-}

-- necessary because of missing 'Eq ZonedTime' instance
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- Network.BSD got deprecated in network-2.7; this line won't be needed once we
-- move to network-3.0 because then we can use the network-bsd package
{-# OPTIONS_GHC -Wno-deprecations #-}

module Bonanza.Streaming.Kibana
( KibanaEvent
Expand Down

0 comments on commit 9cbb237

Please sign in to comment.