-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ fix ] Fix pattern match issue with function application in Refl (#3027
- Loading branch information
1 parent
f0f776c
commit bde1a66
Showing
7 changed files
with
28 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Data.Vect | ||
|
||
bar : (f : List a -> Nat) -> (xs : List a) -> Nat | ||
bar f xs = f xs | ||
|
||
-- Idris was putting fx@f for the first implicit (instead of fx@(f xs)) | ||
foo : (f : List a -> Nat) -> (xs : List a) -> (0 _ : fx = f xs) -> Nat | ||
foo f xs Refl = bar f xs | ||
|
||
blah : (xs : List a) -> Vect (foo List.length xs Refl) () | ||
blah xs = replicate (length xs) () |
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 @@ | ||
idMatch : Type -> Bool | ||
idMatch ((x : Type) -> x) = True | ||
idMatch _ = False |
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 @@ | ||
1/1: Building LocalArgs (LocalArgs.idr) | ||
1/1: Building PiMatch (PiMatch.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,4 @@ | ||
rm -rf build | ||
|
||
$1 --no-color --console-width 0 --no-banner LocalArgs.idr --check | ||
$1 --no-color --console-width 0 --no-banner PiMatch.idr --check |