Skip to content

Commit c48a6e6

Browse files
Add another example of (<>): list concatenation
1 parent 276a5e5 commit c48a6e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Data/Semigroup.purs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import Type.Data.RowList (RLProxy(..))
1818
-- | - Associativity: `(x <> y) <> z = x <> (y <> z)`
1919
-- |
2020
-- | One example of a `Semigroup` is `String`, with `(<>)` defined as string
21-
-- | concatenation.
21+
-- | concatenation. Another example is `List a`, with `(<>)` defined as
22+
-- | list concatenation.
2223
class Semigroup a where
2324
append :: a -> a -> a
2425

0 commit comments

Comments
 (0)