{- | Compatibility helper module.
-This module holds definitions that help with supporting multiple library versions or transitions between versions.
+This module holds definitions that help with supporting multiple
+library versions or transitions between versions.
-}
-}
module Ganeti.HTools.Compat
- ( rwhnf
- , Control.Parallel.Strategies.parMap
- ) where
+ ( rwhnf
+ , Control.Parallel.Strategies.parMap
+ ) where
import qualified Control.Parallel.Strategies
+-- | Wrapper over the function exported from
+-- "Control.Parallel.Strategies".
+--
+-- This wraps either the old or the new name of the function,
+-- depending on the detected library version.
rwhnf :: Control.Parallel.Strategies.Strategy a
#ifdef PARALLEL3
rwhnf = Control.Parallel.Strategies.rseq