floating: Add a new Data.Floating.Types module.
authorNick Bowler <nbowler@draconx.ca>
Wed, 24 Feb 2010 02:38:09 +0000 (23 21:38 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 24 Feb 2010 03:10:33 +0000 (23 22:10 -0500)
This module combines all the modules under it, which are no longer
exposed.

Data/Floating.hs
Data/Floating/CMath/Complex.hs
Data/Floating/Environment.hs
Data/Floating/Types.hs [new file with mode: 0644]
altfloat.cabal

index 29e7ec9..65579c4 100644 (file)
@@ -8,17 +8,13 @@
 
 -- | Top level module for alternative floating point support.
 module Data.Floating (
-    Double, Float,
-    module Data.Floating.Types.Core,
+    module Data.Floating.Types,
     module Data.Floating,
 ) where
 
 import Prelude hiding (RealFloat(..), RealFrac(..), Double, Float)
-import Data.Floating.Types.Core hiding (Double, Float, FloatConvert)
-import Data.Floating.Types.Double
-import Data.Floating.Types.Float
+import Data.Floating.Types
 import Data.Floating.Environment
-import Data.Floating.Types.CMath
 
 import Control.Monad
 
index 5d5e2a9..b7ce19c 100644 (file)
@@ -33,8 +33,7 @@ module Data.Floating.CMath.Complex (
     c_carg, c_cproj
 ) where
 
-import Data.Floating.Types.CMath
-import Data.Floating.Types.Core
+import Data.Floating.Types
 
 import Foreign
 import Foreign.C
index 4625694..e1af2b3 100644 (file)
@@ -61,7 +61,7 @@ module Data.Floating.Environment (
 
 import Prelude hiding (Float, Double, Floating(..), RealFloat(..))
 
-import Data.Floating.Types.Core
+import Data.Floating.Types
 import Control.Exception
 import Control.Applicative
 import Control.Monad
diff --git a/Data/Floating/Types.hs b/Data/Floating/Types.hs
new file mode 100644 (file)
index 0000000..4b85859
--- /dev/null
@@ -0,0 +1,19 @@
+{-
+ - Copyright (C) 2010 Nick Bowler.
+ -
+ - License BSD2:  2-clause BSD license.  See LICENSE for full terms.
+ - This is free software: you are free to change and redistribute it.
+ - There is NO WARRANTY, to the extent permitted by law.
+ -}
+
+-- | Floating point types, classes and instances.  The class interface is
+-- loosely based off of the C standard library; if a function here has the
+-- same name as a C function, it should behave similarly.
+module Data.Floating.Types (
+    module Data.Floating.Types.Core
+) where
+
+import Data.Floating.Types.Core
+import Data.Floating.Types.Double ()
+import Data.Floating.Types.Float  ()
+import Data.Floating.Types.CMath  ()
index e303eb5..3b0d9ba 100644 (file)
@@ -76,14 +76,17 @@ Library
     Exposed-Modules:
         Data.Floating.CMath,
         Data.Floating.CMath.Complex,
-        Data.Floating.Types.Core,
-        Data.Floating.Types.CMath,
-        Data.Floating.Types.Double,
-        Data.Floating.Types.Float,
+        Data.Floating.Types,
         Data.Floating.Prelude,
         Data.Floating.Environment,
         Data.Floating,
         Data.Poset,
         Data.Roundable
     Other-Modules:
-        Data.Floating.Helpers, Data.Poset.Internal, Data.Poset.Instances
+        Data.Floating.Helpers,
+        Data.Floating.Types.Core,
+        Data.Floating.Types.CMath,
+        Data.Floating.Types.Double,
+        Data.Floating.Types.Float,
+        Data.Poset.Internal,
+        Data.Poset.Instances