summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Plugins/Monitors/CoreCommon.hs11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/Plugins/Monitors/CoreCommon.hs b/src/Plugins/Monitors/CoreCommon.hs
index f866d31..a18697f 100644
--- a/src/Plugins/Monitors/CoreCommon.hs
+++ b/src/Plugins/Monitors/CoreCommon.hs
@@ -25,19 +25,10 @@ import Data.Maybe
import Plugins.Monitors.Common
import System.Directory
-#ifdef GHC6
-import Control.Monad.Reader
-
-instance (Monad f, Applicative f) => Applicative (ReaderT r f) where
- pure a = ReaderT $ const (pure a)
- f <*> a = ReaderT $ \r ->
- ((runReaderT f r) <*> (runReaderT a r))
-#endif
-
checkedDataRetrieval :: (Ord a, Num a)
=> String -> [String] -> Maybe (String, String -> Int)
-> (Double -> a) -> (a -> String) -> Monitor String
-checkedDataRetrieval msg path lbl trans fmt = liftM (maybe msg id) $
+checkedDataRetrieval msg path lbl trans fmt = liftM (fromMaybe msg) $
retrieveData path lbl trans fmt
retrieveData :: (Ord a, Num a)