Skip to content

Commit 8383805

Browse files
pepeiborramichaelpj
andcommitted
Apply suggestions from code review
Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
1 parent 72d40b3 commit 8383805

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

cabal.project

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ index-state: 2022-03-08T10:53:01Z
4747
constraints:
4848
hyphenation +embed
4949

50+
-- This is benign and won't affect our ability to release to Hackage,
51+
-- because we only depend on `ekg-wai` when a non-default flag
52+
-- is turned on.
5053
source-repository-package
5154
type:git
5255
location: https://github.com/tvh/ekg-wai/

ghcide/src/Development/IDE/Monitoring/EKG.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ monitoring :: Logger -> Int -> IO Monitoring
1313
monitoring logger port = do
1414
store <- Monitoring.newStore
1515
Monitoring.registerGcMetrics store
16-
let registerCounter name read = Monitoring.registerGauge name read store
16+
let registerCounter name read = Monitoring.registerCounter name read store
1717
registerGauge name read = Monitoring.registerGauge name read store
1818
start = do
1919
server <- do

ghcide/src/Development/IDE/Types/Monitoring.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ data Monitoring = Monitoring {
1111
registerGauge :: Text -> IO Int64 -> IO (),
1212
-- | Register a non-negative, monotonically increasing, integer-valued metric.
1313
registerCounter :: Text -> IO Int64 -> IO (),
14-
start :: IO (IO ())
14+
start :: IO (IO ()) -- ^ Start the monitoring system, returning an action which will stop the system.
1515
}
1616

1717
instance Semigroup Monitoring where

0 commit comments

Comments
 (0)