projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c6a564
)
add import Prelude to get dependencies right for Data/Fixed.hs
author
Duncan Coutts
<duncan.coutts@worc.ox.ac.uk>
Wed, 17 May 2006 22:20:44 +0000
(22:20 +0000)
committer
Duncan Coutts
<duncan.coutts@worc.ox.ac.uk>
Wed, 17 May 2006 22:20:44 +0000
(22:20 +0000)
Hopefully this fixes parallel builds.
Data/Fixed.hs
patch
|
blob
|
history
diff --git
a/Data/Fixed.hs
b/Data/Fixed.hs
index
11fd4d1
..
2b4fb26
100644
(file)
--- a/
Data/Fixed.hs
+++ b/
Data/Fixed.hs
@@
-31,6
+31,8
@@
module Data.Fixed
E12,Pico
) where
+import Prelude -- necessary to get dependencies right
+
-- | generalisation of 'div' to any instance of Real
div' :: (Real a,Integral b) => a -> a -> b
div' n d = floor ((toRational n) / (toRational d))