This repository has been archived by the owner on May 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: implementation of these was a little wrong
Rather than manually implement getApply, getApplicative and getMonad from semigroups I opted to implement only getMonad in terms of 'chain' and then derive the rest of the instance normally via createMonad. Additionally, the monad definition for getMonad was a little long so I shortened it by changing the Fixed type to Fix. Since Apply implements ap and that function must join the left type of a These in some cases I removed the default implementation. This also means removing the default sequence helpers from These.
- Loading branch information
Showing
4 changed files
with
139 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters