Currently I am trying to create a function that takes the type of (a -> a -> a) as a parameter in Idris and the right function to do is the ++ command for lists in idris unfortunately I am getting this error
ListMonoid : (A : Type) -> RawMonoid ListMonoid A = (A ** ([], (++)) )
When checking right hand side of ListMonoid with expected type RawMonoid
Can't disambiguate name: Prelude.List.++, Prelude.Strings.++
Raw Monoid is a data type below
RawMonoid : Type RawMonoid = (M ** (M , M -> M -> M)) infixl 6 &
It seems to me that it does not know which ++ to use, is there a way to specify this in the call?