I have defined a Semigroup
as follows:
record Semigroup : Set1 where
field
X : Set
e : X
_◇_ : X -> X -> X
assoc : ∀ {x y z} -> (x ◇ y) ◇ z -> x ◇ (y ◇ z)
But I get the following error:
X should be a sort, but it isn't
when checking that the expression (x ◇ y) ◇ z has type _52
Can anyone help me determine what's wrong?