summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoridontgetoutmuch <dominic@steinitz.org>2018-04-01 07:59:30 -0700
committerGitHub <noreply@github.com>2018-04-01 07:59:30 -0700
commit63ceed4a69563c08e54269a4a9d3e5d27cb7c489 (patch)
tree56090b07d5d8118c7beca31d1e26b2006a317009
parentc8c6a3e414bb08e3f818f58c121ddc99396b4f1e (diff)
parent9c1f355e4dfc1ae745b4b22471a103a3754a6278 (diff)
Merge pull request #256 from thielema/complexof
base:Internal.Numeric.ComplexOf: turn from type function to type synonym Now it is obvious for GHC that (ComplexOf a) is always a Complex type.
-rw-r--r--packages/base/src/Internal/Numeric.hs8
1 files changed, 1 insertions, 7 deletions
diff --git a/packages/base/src/Internal/Numeric.hs b/packages/base/src/Internal/Numeric.hs
index 216f142..fd0a217 100644
--- a/packages/base/src/Internal/Numeric.hs
+++ b/packages/base/src/Internal/Numeric.hs
@@ -790,13 +790,7 @@ type instance RealOf (Complex Float) = Float
790type instance RealOf I = I 790type instance RealOf I = I
791type instance RealOf Z = Z 791type instance RealOf Z = Z
792 792
793type family ComplexOf x 793type ComplexOf x = Complex (RealOf x)
794
795type instance ComplexOf Double = Complex Double
796type instance ComplexOf (Complex Double) = Complex Double
797
798type instance ComplexOf Float = Complex Float
799type instance ComplexOf (Complex Float) = Complex Float
800 794
801type family SingleOf x 795type family SingleOf x
802 796