-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
90 additions
and
15 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace A | ||
export | ||
foo3 : Int -> Int | ||
foo3 x with (x + 1) | ||
foo3 x | y = y + x | ||
|
||
foo4 : Int | ||
foo4 = A.foo3 5 |
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,6 @@ | ||
foo5 : Int -> Int | ||
foo5 x with (x + 1) | ||
foo5 x | y = y + x | ||
|
||
foo6 : Int | ||
foo6 = 52 |
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,6 @@ | ||
foo : Int -> Int | ||
foo x with (x + 1) | ||
foo x | y = y + x | ||
|
||
foo2 : Int | ||
foo2 = foo 5 |
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,24 @@ | ||
1/1: Building Issue637 (Issue637.idr) | ||
Main> 11 | ||
Main> | ||
Bye for now! | ||
1/1: Building Issue637-2 (Issue637-2.idr) | ||
Error: Expected an indented non-empty block. | ||
|
||
Issue637-2.idr:5:3--5:4 | ||
1 | namespace A | ||
2 | export | ||
3 | foo3 : Int -> Int | ||
4 | foo3 x with (x + 1) | ||
5 | foo3 x | y = y + x | ||
^ | ||
|
||
1/1: Building Issue637-3 (Issue637-3.idr) | ||
Error: Expected an indented non-empty block. | ||
|
||
Issue637-3.idr:3:1--3:2 | ||
1 | foo5 : Int -> Int | ||
2 | foo5 x with (x + 1) | ||
3 | foo5 x | y = y + x | ||
^ | ||
|
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,2 @@ | ||
foo2 | ||
:q |
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,5 @@ | ||
$1 --no-color --console-width 0 --no-banner Issue637.idr < input | ||
$1 --no-color --console-width 0 --no-banner --check Issue637-2.idr | ||
$1 --no-color --console-width 0 --no-banner --check Issue637-3.idr | ||
|
||
rm -rf build |