monoid module

This commit is contained in:
Stephen Diehl
2016-12-12 16:21:49 +00:00
parent c7eeb5349e
commit d6d1004070
2 changed files with 39 additions and 3 deletions
+22
View File
@@ -4,6 +4,28 @@ Monoid
Monoid
------
#### mempty
```haskell
mempty :: Monoid a => a
```
#### <>
```haskell
(<>) :: Monoid m => m -> m -> m
```
```haskell
mappend :: Monoid a => a -> a -> a
```
#### mconcat
```haskell
mconcat :: Monoid a => [a] -> a
```
Semigroup
---------