Copyright | (c) Dominik Schrempf 2020 |
---|---|
License | GPL-3.0-or-later |
Maintainer | dominik.schrempf@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Creation date: Fri May 29 11:11:49 2020.
Synopsis
- data MonitorParameter a = MonitorParameter {}
- (@.) :: Lens' b a -> MonitorParameter a -> MonitorParameter b
- monitorInt :: String -> MonitorParameter Int
- monitorDouble :: String -> MonitorParameter Double
- monitorDoubleF :: String -> MonitorParameter Double
- monitorDoubleE :: String -> MonitorParameter Double
Parameter monitors
(@.) :: Lens' b a -> MonitorParameter a -> MonitorParameter b Source #
Convert a parameter monitor from one data type to another using a lens.
For example, to monitor a Double
value being the first entry of a tuple:
mon = _1 @@ monitorDouble
:: String | Name. |
-> MonitorParameter Double |
Monitor Double
with eight decimal places (half precision).
:: String | Name. |
-> MonitorParameter Double |
Monitor Double
with full precision computing the shortest string of
digits that correctly represent the number.
:: String | Name. |
-> MonitorParameter Double |
Monitor Double
in exponential format and half precision.