-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
33 changed files
with
407 additions
and
19 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
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,3 @@ | ||
covering | ||
f : Int -> Int | ||
f i = f i |
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,4 @@ | ||
total | ||
total | ||
f : () | ||
f = () |
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 @@ | ||
total | ||
partial | ||
covering | ||
total | ||
partial | ||
f : () | ||
f = () |
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,83 @@ | ||
1/1: Building overrideDefault (overrideDefault.idr) | ||
------ | ||
1/1: Building compilerOption (compilerOption.idr) | ||
------ | ||
1/1: Building sameAsDefault (sameAsDefault.idr) | ||
------ | ||
1/1: Building implementationOverride (implementationOverride.idr) | ||
------ | ||
1/1: Building issue3437 (issue3437.idr) | ||
Error: Multiple totality modifiers | ||
|
||
issue3437:1:1--3:15 | ||
1 | total | ||
2 | covering | ||
3 | f : Int -> Int | ||
|
||
Possible solutions: | ||
- Leave only one modifier out of `covering`, `total` | ||
- Remove modifiers `covering`, `total`, resulting in the default totality of `covering` | ||
------ | ||
1/1: Building doubleTotal (doubleTotal.idr) | ||
Error: Multiple totality modifiers | ||
|
||
doubleTotal:1:1--3:7 | ||
1 | total | ||
2 | total | ||
3 | f : () | ||
|
||
Possible solutions: | ||
- Remove duplicates of `total` | ||
------ | ||
1/1: Building implementation (implementation.idr) | ||
Error: Multiple totality modifiers | ||
|
||
implementation:3:1--6:21 | ||
3 | total | ||
4 | covering | ||
5 | partial | ||
6 | implementation Iface | ||
|
||
Possible solutions: | ||
- Leave only one modifier out of `partial`, `covering`, `total` | ||
- Remove modifiers `partial`, `covering`, `total`, resulting in the default totality of `covering` | ||
------ | ||
1/1: Building interface (interface.idr) | ||
Error: Multiple totality modifiers | ||
|
||
interface:2:3--5:14 | ||
2 | total | ||
3 | covering | ||
4 | partial | ||
5 | method : () | ||
|
||
Possible solutions: | ||
- Leave only one modifier out of `partial`, `covering`, `total` | ||
- Remove modifiers `partial`, `covering`, `total`, resulting in the default totality of `covering` | ||
------ | ||
1/1: Building noOverrideDefault (noOverrideDefault.idr) | ||
Error: Multiple totality modifiers | ||
|
||
noOverrideDefault:1:1--3:15 | ||
1 | total | ||
2 | partial | ||
3 | f : Int -> Int | ||
|
||
Possible solutions: | ||
- Leave only one modifier out of `partial`, `total` | ||
------ | ||
1/1: Building duplicates (duplicates.idr) | ||
Error: Multiple totality modifiers | ||
|
||
duplicates:1:1--6:7 | ||
1 | total | ||
2 | partial | ||
3 | covering | ||
4 | total | ||
5 | partial | ||
6 | f : () | ||
|
||
Possible solutions: | ||
- Remove duplicates of `partial`, `total` | ||
- Leave only one modifier out of `partial`, `covering`, `total` | ||
- Remove modifiers `partial`, `covering`, `total`, resulting in the default totality of `covering` |
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 @@ | ||
interface Iface where | ||
|
||
total | ||
covering | ||
partial | ||
implementation Iface |
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 @@ | ||
interface Iface where | ||
total | ||
method : () | ||
|
||
covering | ||
implementation Iface where | ||
method = () |
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 @@ | ||
interface Iface where | ||
total | ||
covering | ||
partial | ||
method : () |
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,4 @@ | ||
total | ||
covering | ||
f : Int -> Int | ||
f i = f i |
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,4 @@ | ||
total | ||
partial | ||
f : Int -> Int | ||
f i = f i |
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 @@ | ||
%default total | ||
|
||
covering | ||
f : Int -> Int | ||
f i = f i |
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,21 @@ | ||
. ../../../testutils.sh | ||
|
||
check overrideDefault.idr | ||
echo "------" | ||
idris2 --check --total compilerOption.idr | ||
echo "------" | ||
check sameAsDefault.idr | ||
echo "------" | ||
check implementationOverride.idr | ||
echo "------" | ||
check issue3437.idr | ||
echo "------" | ||
check doubleTotal.idr | ||
echo "------" | ||
check implementation.idr | ||
echo "------" | ||
check interface.idr | ||
echo "------" | ||
check noOverrideDefault.idr | ||
echo "------" | ||
check duplicates.idr |
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 @@ | ||
%default total | ||
|
||
total | ||
f : () | ||
f = () |
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 @@ | ||
total | ||
data X : Type | ||
|
||
partial | ||
data X where | ||
MkX : (X -> X) -> X |
Oops, something went wrong.