add System.Posix.Types to default nhc98 build
[haskell-directory.git] / Data / Fixed.hs
index 54ad801..691a935 100644 (file)
@@ -1,4 +1,4 @@
-{-# OPTIONS -Wall -Werror -fno-warn-unused-binds #-}
+{-# OPTIONS -Wall -fno-warn-unused-binds #-}
 
 -----------------------------------------------------------------------------
 -- |
 -- Stability   :  experimental
 -- Portability :  portable
 --
---  This module defines a "Fixed" type for fixed-precision arithmetic.
---  The parameter to Fixed is any type that's an instance of HasResolution.
---  HasResolution has a single method that gives the resolution of the Fixed type.
---  Parameter types E6 and E12 (for 10^6 and 10^12) are defined, as well as
---  type synonyms for Fixed E6 and Fixed E12.
+-- This module defines a "Fixed" type for fixed-precision arithmetic.
+-- The parameter to Fixed is any type that's an instance of HasResolution.
+-- HasResolution has a single method that gives the resolution of the Fixed type.
+-- Parameter types E6 and E12 (for 10^6 and 10^12) are defined, as well as
+-- type synonyms for Fixed E6 and Fixed E12.
 --
---  This module also contains generalisations of div, mod, and divmod to work
---  with any Real instance.
+-- This module also contains generalisations of div, mod, and divmod to work
+-- with any Real instance.
 --
 -----------------------------------------------------------------------------
 
@@ -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))