123456789101112131415161718{-# OPTIONS --cubical-compatible #-}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 = foldr _◇_ ε Foldable-Maybe : Foldable Maybe Foldable-Maybe .fold = fromMaybe ε Foldable-List⁺ : Foldable List⁺ Foldable-List⁺ .fold (x ∷ xs) = x ◇ fold xs