-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3315 from andrevidela/fix-3302
Emit error when unbound fixity is hidden
- Loading branch information
Showing
15 changed files
with
140 additions
and
16 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 @@ | ||
module Module | ||
|
||
export infixl 7 &&++ |
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 @@ | ||
|
||
%hide DoesNotExist.infixl.(+-+) |
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 @@ | ||
import Module | ||
|
||
%hide Modul.infixl.(&&++) |
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 @@ | ||
import Module | ||
|
||
%hide Module.infixr.(&&++) |
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 @@ | ||
import Module | ||
|
||
%hide Module.infixl.(&&+*) |
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 @@ | ||
|
||
import Module | ||
|
||
%hide DoesNotExist.infixl.(&&++) |
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,54 @@ | ||
1/1: Building Test (Test.idr) | ||
Error: Fixity DoesNotExist.infixl.(+-+) not found | ||
|
||
Test:2:1--2:32 | ||
1 | | ||
2 | %hide DoesNotExist.infixl.(+-+) | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
1/2: Building Module (Module.idr) | ||
2/2: Building Test1 (Test1.idr) | ||
Error: Fixity Modul.infixl.(&&++) not found | ||
|
||
Test1:3:1--3:26 | ||
1 | import Module | ||
2 | | ||
3 | %hide Modul.infixl.(&&++) | ||
^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Did you mean: | ||
- %hide Module.infixl.(&&++) | ||
2/2: Building Test2 (Test2.idr) | ||
Error: Fixity Module.infixr.(&&++) not found | ||
|
||
Test2:3:1--3:27 | ||
1 | import Module | ||
2 | | ||
3 | %hide Module.infixr.(&&++) | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Did you mean: | ||
- %hide Module.infixl.(&&++) | ||
2/2: Building Test3 (Test3.idr) | ||
Error: Fixity Module.infixl.(&&+*) not found | ||
|
||
Test3:3:1--3:27 | ||
1 | import Module | ||
2 | | ||
3 | %hide Module.infixl.(&&+*) | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Did you mean: | ||
- %hide Module.infixl.(&&++) | ||
2/2: Building Test4 (Test4.idr) | ||
Error: Fixity DoesNotExist.infixl.(&&++) not found | ||
|
||
Test4:4:1--4:33 | ||
1 | | ||
2 | import Module | ||
3 | | ||
4 | %hide DoesNotExist.infixl.(&&++) | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Did you mean: | ||
- %hide Module.infixl.(&&++) |
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 @@ | ||
. ../../../testutils.sh | ||
|
||
check Test.idr | ||
check Test1.idr | ||
check Test2.idr | ||
check Test3.idr | ||
check Test4.idr |