Idris2/libs/contrib/Data/List/Algebra.idr

16 lines
295 B
Idris
Raw Normal View History

2020-07-14 01:52:22 +03:00
module Data.List.Algebra
import Control.Algebra
import Data.List
%default total
public export
SemigroupV (List ty) where
semigroupOpIsAssociative = appendAssociative
public export
MonoidV (List ty) where
monoidNeutralIsNeutralL = appendNilRightNeutral
monoidNeutralIsNeutralR _ = Refl