3 {- | Compatibility helper module.
5 This module holds definitions that help with supporting multiple library versions or transitions between versions.
11 Copyright (C) 2011 Google Inc.
13 This program is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2 of the License, or
16 (at your option) any later version.
18 This program is distributed in the hope that it will be useful, but
19 WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 General Public License for more details.
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
30 module Ganeti.HTools.Compat
32 , Control.Parallel.Strategies.parMap
35 import qualified Control.Parallel.Strategies
37 -- | Wrapper over the function exported from
38 -- "Control.Parallel.Strategies".
40 -- This wraps either the old or the new name of the function,
41 -- depending on the detected library version.
42 rwhnf :: Control.Parallel.Strategies.Strategy a
44 rwhnf = Control.Parallel.Strategies.rseq
46 rwhnf = Control.Parallel.Strategies.rwhnf