summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorHenning Thielemann <git@henning-thielemann.de>2018-03-29 21:37:22 +0200
committerHenning Thielemann <git@henning-thielemann.de>2018-03-29 21:37:22 +0200
commit9c1f355e4dfc1ae745b4b22471a103a3754a6278 (patch)
treedd64d14c729e31ae23b651db8c21434c257cab04 /packages
parentd83b17190029c11e3ab8b504e5cdc917f5863120 (diff)
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.
Diffstat (limited to 'packages')
-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 c9ef0c5..d478984 100644
--- a/packages/base/src/Internal/Numeric.hs
+++ b/packages/base/src/Internal/Numeric.hs
@@ -788,13 +788,7 @@ type instance RealOf (Complex Float) = Float
788type instance RealOf I = I 788type instance RealOf I = I
789type instance RealOf Z = Z 789type instance RealOf Z = Z
790 790
791type family ComplexOf x 791type ComplexOf x = Complex (RealOf x)
792
793type instance ComplexOf Double = Complex Double
794type instance ComplexOf (Complex Double) = Complex Double
795
796type instance ComplexOf Float = Complex Float
797type instance ComplexOf (Complex Float) = Complex Float
798 792
799type family SingleOf x 793type family SingleOf x
800 794