floating: Move Data.Floating.CMath.Instances under Data.Floating.Types.
authorNick Bowler <nbowler@draconx.ca>
Tue, 23 Feb 2010 23:41:50 +0000 (23 18:41 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 24 Feb 2010 03:02:37 +0000 (23 22:02 -0500)
Part of a massive cleanup of altfloat's module layout.

Data/Floating.hs
Data/Floating/CMath/Complex.hs
Data/Floating/Types/CMath.hs [moved from Data/Floating/CMath/Instances.hs with 99% similarity]
altfloat.cabal

index 7c71c10..6fb5759 100644 (file)
@@ -19,7 +19,7 @@ import Data.Floating.Instances
 import Data.Floating.Types.Double
 import Data.Floating.Types.Float
 import Data.Floating.Environment
-import Data.Floating.CMath.Instances
+import Data.Floating.Types.CMath
 
 import Control.Monad
 
index 24db29d..5d5e2a9 100644 (file)
@@ -33,7 +33,7 @@ module Data.Floating.CMath.Complex (
     c_carg, c_cproj
 ) where
 
-import Data.Floating.CMath.Instances
+import Data.Floating.Types.CMath
 import Data.Floating.Types.Core
 
 import Foreign
similarity index 99%
rename from Data/Floating/CMath/Instances.hs
rename to Data/Floating/Types/CMath.hs
index 4090c75..ff6e632 100644 (file)
@@ -9,7 +9,7 @@
 -- | Class instances for 'CFloat' and 'CDouble'.  As it is elsewhere in the
 -- library, it is assumed that 'CFloat' is identical to 'Float' and 'CDouble'
 -- is identical to 'Double'.
-module Data.Floating.CMath.Instances where
+module Data.Floating.Types.CMath where
 
 import Prelude (($), (.), const, undefined)
 import Data.Floating.Types.Double
index a25c7fe..4576dd1 100644 (file)
@@ -77,6 +77,7 @@ Library
         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.Prelude,
@@ -85,5 +86,4 @@ Library
         Data.Poset
     Other-Modules:
         Data.Floating.Instances, Data.Floating.Helpers,
-        Data.Floating.CMath.Instances,
         Data.Poset.Internal, Data.Poset.Instances