Skip to content

Commit cd7ee8d

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

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

cabal.project

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ constraints:
5353
ghc-lib-parser-ex -auto,
5454
stylish-haskell +ghc-lib
5555

56-
source-repository-package
56+
-- This is benign and won't affect our ability to release to Hackage,
57+
-- because we only depend on `ekg-json` when a non-default flag
58+
-- is turned on.
59+
source-repository-package
5760
type:git
5861
location: https://github.com/vshabanov/ekg-json
5962
tag: 00ebe7211c981686e65730b7144fbf5350462608

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)