Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3 from joneshf/master
Browse files Browse the repository at this point in the history
Add `(->)` instance.
  • Loading branch information
paf31 committed Sep 2, 2014
2 parents 3ae7fd1 + 86d406c commit b5ebfe7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

### Type Class Instances

instance monoidArr :: (Monoid b) => Monoid (a -> b)

instance monoidArray :: Monoid [a]

instance monoidString :: Monoid String
Expand Down
5 changes: 4 additions & 1 deletion src/Data/Monoid.purs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ instance monoidString :: Monoid String where

instance monoidArray :: Monoid [a] where
mempty = []

instance monoidUnit :: Monoid Unit where
mempty = unit

instance monoidArr :: (Monoid b) => Monoid (a -> b) where
mempty = const mempty

0 comments on commit b5ebfe7

Please sign in to comment.