← Back

Modules

Leios

  • Abstract
  • Base
  • Blocks
  • Config
  • Defaults
  • FFD
  • Foreign.BaseTypes
  • Foreign.HsTypes
  • Foreign.Types
  • Foreign.Util
  • KeyRegistration
  • Prelude
  • Protocol
  • Short
  • Short.Trace.Verifier
  • SpecStructure
  • Traces
  • Voting
  • VRF

Network

  • BasicBroadcast
  • Leios
123456789101112131415
{-# OPTIONS --without-K #-}
module Class.Foldable.Instances where
 
open import Class.Prelude
open import Class.Functor
open import Class.Semigroup
open import Class.Monoid
open import Class.Foldable.Core
 
instance
Foldable-List : Foldable List
Foldable-List .fold = go where go = λ where
[] → ε
(x ∷ []) → x
(x ∷ xs@(_ ∷ _)) → x ◇ go xs