aboutsummaryrefslogtreecommitdiff
path: root/test/Util.hs
diff options
context:
space:
mode:
Diffstat (limited to 'test/Util.hs')
-rw-r--r--test/Util.hs7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/Util.hs b/test/Util.hs
index ce6ec23..8a5ba72 100644
--- a/test/Util.hs
+++ b/test/Util.hs
@@ -1,7 +1,6 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ImportQualifiedPost #-}
-{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
@@ -12,11 +11,11 @@ module Util where
import Data.Array.RankedS qualified as OR
import Data.Kind
+import GHC.TypeLits
import Hedgehog
import Hedgehog.Internal.Property (failDiff)
-import GHC.TypeLits
-import Data.Array.Mixed.Types (fromSNat')
+import Data.Array.Nested.Types (fromSNat')
-- Returns highest value that satisfies the predicate, or `lo` if none does
@@ -43,7 +42,7 @@ class AlmostEq f where
almostEq :: (AlmostEqConstr f a, Ord a, Show a, Fractional a, MonadTest m)
=> a -> f a -> f a -> m ()
-instance KnownNat n => AlmostEq (OR.Array n) where
+instance AlmostEq (OR.Array n) where
type AlmostEqConstr (OR.Array n) = OR.Unbox
almostEq atol lhs rhs
| OR.allA (< atol) (OR.zipWithA (\a b -> abs (a - b)) rhs lhs) =