From 27491702baaffcd3ce8bef9ca8d06ee3b453540b Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 4 Mar 2025 23:30:16 +0100 Subject: Add regression test for HEAD^ --- src/Data.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/Data.hs b/src/Data.hs index 00790fe..155eeb3 100644 --- a/src/Data.hs +++ b/src/Data.hs @@ -43,6 +43,10 @@ unSList :: (forall t. f t -> a) -> SList f list -> [a] unSList _ SNil = [] unSList f (x `SCons` l) = f x : unSList f l +showSList :: (forall t. Int -> f t -> String) -> SList f list -> String +showSList _ SNil = "SNil" +showSList f (x `SCons` l) = f 11 x ++ " `SCons` " ++ showSList f l + sappend :: SList f l1 -> SList f l2 -> SList f (Append l1 l2) sappend SNil l = l sappend (SCons x xs) l = SCons x (sappend xs l) -- cgit v1.2.3-70-g09d2