expand semigroup

This commit is contained in:
Stephen Diehl
2016-12-12 16:30:52 +00:00
parent d6d1004070
commit 0fb7730b0c
2 changed files with 18 additions and 0 deletions
+14
View File
@@ -29,6 +29,17 @@ mconcat :: Monoid a => [a] -> a
Semigroup
---------
```haskell
(<>) :: Semigroup a => a -> a -> a
```
```haskell
sconcat :: Semigroup a => NonEmpty a -> a
```
```haskell
stimes :: (Semigroup a, Integral b) => b -> a -> a
```
```haskell
option :: b -> (a -> b) -> Option a -> b
@@ -57,3 +68,6 @@ stimesIdempotentMonoid :: (Integral b, Monoid a) => b -> a -> a
```haskell
mtimesDefault :: (Integral b, Monoid a) => b -> a -> a
```
NonEmpty
---------