-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(alt): add an interface for Alt with instance for Maybe
re #3
- Loading branch information
1 parent
52294e7
commit d8a5f21
Showing
3 changed files
with
107 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Type, URIs } from './HKT' | ||
|
||
export interface Alt1<F extends URIs, A> { | ||
alt: (fa: Type<F, A>) => Type<F, A> | ||
} | ||
|
||
export interface AltS1<F extends URIs> { | ||
alt: <A>(f2: Type<F, A>, f1: Type<F, A>) => Type<F, A> | ||
} |
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