From 3b4e5a8b11d08281efe8a11dab0e71101a0de1f9 Mon Sep 17 00:00:00 2001 From: Harry Garrood Date: Thu, 26 Apr 2018 17:39:20 +0100 Subject: [PATCH] Add Semigroup NonEmptyArray instance --- src/Data/Array/NonEmpty.purs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Data/Array/NonEmpty.purs b/src/Data/Array/NonEmpty.purs index 65921840..46fa59cc 100644 --- a/src/Data/Array/NonEmpty.purs +++ b/src/Data/Array/NonEmpty.purs @@ -125,6 +125,8 @@ derive newtype instance eq1NonEmptyArray :: Eq1 NonEmptyArray derive newtype instance ordNonEmptyArray :: Ord a => Ord (NonEmptyArray a) derive newtype instance ord1NonEmptyArray :: Ord1 NonEmptyArray +derive newtype instance semigroupNonEmptyArray :: Semigroup (NonEmptyArray a) + derive newtype instance functorNonEmptyArray :: Functor NonEmptyArray derive newtype instance functorWithIndexNonEmptyArray :: FunctorWithIndex Int NonEmptyArray