I have the following type:
data SomeType = Var String
deriving (Eq,Show)
newtype TypeA = TypeA [(String, SomeType)]
deriving (Eq,Show)
Also, I have a function:
fun1 :: TypeA -> TypeA -> TypeA
I can use this function for mappend
.
I don't understand, how to implement Monoid interface in my case.