Skip to content

Commit

Permalink
Use explicit concat function for getEndomorphismMonoid
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte Legenhausen authored and gcanti committed May 15, 2019
1 parent 629141c commit accbd86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Monoid.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Bounded } from './Bounded'
import { compose, Endomorphism, identity, concat } from './function'
import { Endomorphism, identity, concat } from './function'
import {
fold as foldSemigroup,
getDictionarySemigroup,
Expand Down Expand Up @@ -177,7 +177,7 @@ export const getFunctionMonoid = <M>(M: Monoid<M>) => <A = never>(): Monoid<(a:
*/
export const getEndomorphismMonoid = <A = never>(): Monoid<Endomorphism<A>> => {
return {
concat: compose,
concat: (x, y) => a => x(y(a)),
empty: identity
}
}
Expand Down

0 comments on commit accbd86

Please sign in to comment.