aboutsummaryrefslogtreecommitdiff
path: root/test/Gen.hs
diff options
context:
space:
mode:
Diffstat (limited to 'test/Gen.hs')
-rw-r--r--test/Gen.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Gen.hs b/test/Gen.hs
index 8099f0d..ae1d1f0 100644
--- a/test/Gen.hs
+++ b/test/Gen.hs
@@ -98,7 +98,7 @@ genReplicatedShR = \m n -> do
(sh2, sh3) <- injectOnes n sh1 sh1
return (sh1, sh2, sh3)
where
- injectOnes :: m <= n => SNat n -> IShR m -> IShR m -> Gen (IShR n, IShR n)
+ injectOnes :: SNat n -> IShR m -> IShR m -> Gen (IShR n, IShR n)
injectOnes n@SNat shOnes sh
| m@SNat <- shrRank sh
= case cmpNat n m of
@@ -110,7 +110,7 @@ genReplicatedShR = \m n -> do
Refl <- return (lem n m)
injectOnes n (inject index 1 shOnes) (inject index value sh)
- lem :: forall n m proxy. Compare n m ~ GT => proxy n -> proxy m -> (m + 1 <=? n) :~: True
+ lem :: forall n m proxy. proxy n -> proxy m -> (m + 1 <=? n) :~: True
lem _ _ = unsafeCoerceRefl
inject :: Int -> Int -> IShR m -> IShR (m + 1)