purescript-metrics/src/System/Metrics/Gauge.purs

12 lines
250 B
Plaintext
Raw Normal View History

2017-11-15 18:00:34 +05:30
module System.Metrics.Gauge (Gauge, new, read) where
import Control.Monad.Aff (Aff)
newtype Gauge = Gauge (forall eff. Aff eff Int)
new :: (forall eff. Aff eff Int) -> Gauge
new = Gauge
read :: forall eff. Gauge -> Aff eff Int
read (Gauge f) = f