#endif
) where
-import Prelude
-
import Data.Maybe ( isJust )
#ifdef __GLASGOW_HASKELL__
import GHC.Base
-- | Adds an element to a 'FiniteMap'. If there is already an element
-- with the same key, then the specified combination function is used
--- to calculate the new value.
+-- to calculate the new value. The already present element is passed as
+-- the first argument and the new element to add as second.
addToFM_C :: (Ord key OUTPUTABLE_key) => (elt -> elt -> elt)
-> FiniteMap key elt -> key -> elt
-> FiniteMap key elt