Idris2/libs/contrib/Data/List/Algebra.idr
2020-07-17 08:25:20 -05:00

16 lines
295 B
Idris

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