From d0eb9a1edfb4233d557d954f46685f25382234d8 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 29 Apr 2025 20:37:06 +0200 Subject: Reorder TLEither to after TEither --- src/AST/Accum.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/AST/Accum.hs') diff --git a/src/AST/Accum.hs b/src/AST/Accum.hs index e84034b..03369c8 100644 --- a/src/AST/Accum.hs +++ b/src/AST/Accum.hs @@ -79,6 +79,7 @@ lemZeroInfoD2 :: STy t -> ZeroInfo (D2 t) :~: TNil lemZeroInfoD2 STNil = Refl lemZeroInfoD2 (STPair a b) | Refl <- lemZeroInfoD2 a, Refl <- lemZeroInfoD2 b = Refl lemZeroInfoD2 (STEither a b) | Refl <- lemZeroInfoD2 a, Refl <- lemZeroInfoD2 b = Refl +lemZeroInfoD2 (STLEither a b) | Refl <- lemZeroInfoD2 a, Refl <- lemZeroInfoD2 b = Refl lemZeroInfoD2 (STMaybe a) | Refl <- lemZeroInfoD2 a = Refl lemZeroInfoD2 (STArr _ a) | Refl <- lemZeroInfoD2 a = Refl lemZeroInfoD2 (STScal STI32) = Refl @@ -87,7 +88,6 @@ lemZeroInfoD2 (STScal STF32) = Refl lemZeroInfoD2 (STScal STF64) = Refl lemZeroInfoD2 (STScal STBool) = Refl lemZeroInfoD2 (STAccum _) = error "Accumulators disallowed in source program" -lemZeroInfoD2 (STLEither a b) | Refl <- lemZeroInfoD2 a, Refl <- lemZeroInfoD2 b = Refl -- -- | Additional info needed for accumulation. This is empty unless there is -- -- sparsity in the monoid. -- cgit v1.2.3-70-g09d2