-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Closes #2355 - Depends on #2943 Example: ``` minusOne : Nat -> Maybe Nat | zero := nothing | (suc n) := just n; minusThree (n : Nat) : Maybe Nat := do { x1 <- minusOne n; x2 <- minusOne x1; let x2' : Nat := x2; in x3 <- minusOne x2'; pure x3; }; ```
- Loading branch information
1 parent
41450a8
commit eb0922a
Showing
21 changed files
with
689 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module Juvix.Compiler.Builtins.Monad where | ||
|
||
import Juvix.Compiler.Internal.Extra | ||
import Juvix.Prelude | ||
|
||
checkMonadBind :: forall r. FunctionDef -> Sem r () | ||
checkMonadBind _ = return () |
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
Oops, something went wrong.