Permalink
Browse files

Merge pull request #33 from dmcclean/folds

Generalized types for commonly convenient folds
  • Loading branch information...
2 parents 1688936 + cdac67a commit 5c55721d577f1dae562c851321e65d530da733eb @bjornbm committed Mar 5, 2014
Showing with 5 additions and 1 deletion.
  1. +5 −1 Numeric/Units/Dimensional/DK/Prelude.hs
@@ -3,6 +3,7 @@ module Numeric.Units.Dimensional.DK.Prelude
, module Numeric.Units.Dimensional.DK.Quantities
, module Numeric.Units.Dimensional.DK.SIUnits
, module Numeric.NumType.DK
+ , module Data.Foldable
, module Prelude
) where
@@ -19,10 +20,13 @@ import Numeric.NumType.DK
( neg5, neg4, neg3, neg2, neg1, zero, pos1, pos2, pos3, pos4, pos5
) -- Used in exponents.
+import Data.Foldable
+ ( product, minimum, maximum )
+
import Prelude hiding
( (+), (-), (*), (/), (^), (**)
, abs, negate, pi, exp, log, sqrt
, sin, cos, tan, asin, acos, atan, atan2
, sinh, cosh, tanh, asinh, acosh, atanh
- , sum
+ , sum, product, minimum, maximum
) -- Hide definitions overridden by 'Numeric.Dimensional'.

0 comments on commit 5c55721

Please sign in to comment.