Skip to content

Commit be06b77

Browse files
authored
Merge pull request #150 from IQHQ/master
Remove RealFloat constraint from Complex instance of Vector.Unboxed
2 parents 9779154 + df690c0 commit be06b77

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Data/Vector/Unboxed/Base.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,9 @@ instance G.Vector Vector Bool where
353353
newtype instance MVector s (Complex a) = MV_Complex (MVector s (a,a))
354354
newtype instance Vector (Complex a) = V_Complex (Vector (a,a))
355355

356-
instance (RealFloat a, Unbox a) => Unbox (Complex a)
356+
instance (Unbox a) => Unbox (Complex a)
357357

358-
instance (RealFloat a, Unbox a) => M.MVector MVector (Complex a) where
358+
instance (Unbox a) => M.MVector MVector (Complex a) where
359359
{-# INLINE basicLength #-}
360360
{-# INLINE basicUnsafeSlice #-}
361361
{-# INLINE basicOverlaps #-}
@@ -382,7 +382,7 @@ instance (RealFloat a, Unbox a) => M.MVector MVector (Complex a) where
382382
basicUnsafeMove (MV_Complex v1) (MV_Complex v2) = M.basicUnsafeMove v1 v2
383383
basicUnsafeGrow (MV_Complex v) n = MV_Complex `liftM` M.basicUnsafeGrow v n
384384

385-
instance (RealFloat a, Unbox a) => G.Vector Vector (Complex a) where
385+
instance (Unbox a) => G.Vector Vector (Complex a) where
386386
{-# INLINE basicUnsafeFreeze #-}
387387
{-# INLINE basicUnsafeThaw #-}
388388
{-# INLINE basicLength #-}
@@ -406,4 +406,3 @@ instance (RealFloat a, Unbox a) => G.Vector Vector (Complex a) where
406406

407407
#define DEFINE_INSTANCES
408408
#include "unbox-tuple-instances"
409-

0 commit comments

Comments
 (0)