123456789101112131415{-# OPTIONS --without-K #-}module Class.Foldable.Instances where open import Class.Preludeopen import Class.Functoropen import Class.Semigroupopen import Class.Monoidopen import Class.Foldable.Core instance Foldable-List : Foldable List Foldable-List .fold = go where go = λ where [] → ε (x ∷ []) → x (x ∷ xs@(_ ∷ _)) → x ◇ go xs