Skip to content

Commit

Permalink
fix Group laws
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed Oct 13, 2017
1 parent 9d5eaa8 commit e6be33c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,15 @@ Given a value `m`, one can access its type representative via the
A value that implements the Group specification must also implement
the [Monoid](#monoid) specification.

1. `g.concat(g.invert())` is equivalent to `g.empty()` (right inverse)
2. `g.invert().concat(g)` is equivalent to `g.empty()` (left inverse)
1. `g.concat(g.invert())` is equivalent to `g.constructor.empty()` (right inverse)
2. `g.invert().concat(g)` is equivalent to `g.constructor.empty()` (left inverse)

#### `invert` method

```hs
invert :: Group g => g ~> () -> g
```

A value which has a Group must provide an `invert` method. The
`invert` method takes no arguments:

Expand Down

0 comments on commit e6be33c

Please sign in to comment.