-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ upstream ] Work around
IHole
s in type signatures
- Loading branch information
Showing
13 changed files
with
372 additions
and
2 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
1 change: 1 addition & 0 deletions
1
tests/derivation/least-effort/print/regression/fin-inc/AlternativeCore.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 @@ | ||
../_common/AlternativeCore.idr |
15 changes: 15 additions & 0 deletions
15
tests/derivation/least-effort/print/regression/fin-inc/DerivedGen.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,15 @@ | ||
module DerivedGen | ||
|
||
import AlternativeCore | ||
import PrintDerivation | ||
|
||
%default total | ||
|
||
record FinInc n where | ||
constructor MkFinInc | ||
val : Nat | ||
prf : LTE val n | ||
|
||
%language ElabReflection | ||
|
||
%runElab printDerived @{MainCoreDerivator @{LeastEffort}} $ Fuel -> Gen MaybeEmpty (n ** FinInc n) |
1 change: 1 addition & 0 deletions
1
tests/derivation/least-effort/print/regression/fin-inc/PrintDerivation.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 @@ | ||
../_common/PrintDerivation.idr |
1 change: 1 addition & 0 deletions
1
tests/derivation/least-effort/print/regression/fin-inc/RunDerivedGen.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 @@ | ||
../_common/RunDerivedGen.idr |
1 change: 1 addition & 0 deletions
1
tests/derivation/least-effort/print/regression/fin-inc/derive.ipkg
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 @@ | ||
../_common/derive.ipkg |
297 changes: 297 additions & 0 deletions
297
tests/derivation/least-effort/print/regression/fin-inc/expected
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
../_common/run |
21 changes: 21 additions & 0 deletions
21
tests/derivation/least-effort/run/regression/fin-inc/DerivedGen.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,21 @@ | ||
module DerivedGen | ||
|
||
import RunDerivedGen | ||
|
||
%default total | ||
|
||
record FinInc n where | ||
constructor MkFinInc | ||
val : Nat | ||
prf : LTE val n | ||
|
||
Show (FinInc n) where | ||
show (MkFinInc v p) = "MkFinInc \{show v} prf" | ||
|
||
checkedGen : Fuel -> Gen MaybeEmpty (n ** FinInc n) | ||
checkedGen = deriveGen @{MainCoreDerivator @{LeastEffort}} | ||
|
||
main : IO () | ||
main = runGs | ||
[ G $ \fl => checkedGen fl | ||
] |
1 change: 1 addition & 0 deletions
1
tests/derivation/least-effort/run/regression/fin-inc/RunDerivedGen.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 @@ | ||
../_common/RunDerivedGen.idr |
1 change: 1 addition & 0 deletions
1
tests/derivation/least-effort/run/regression/fin-inc/derive.ipkg
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 @@ | ||
../_common/derive.ipkg |
24 changes: 24 additions & 0 deletions
24
tests/derivation/least-effort/run/regression/fin-inc/expected
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/2: Building RunDerivedGen (RunDerivedGen.idr) | ||
2/2: Building DerivedGen (DerivedGen.idr) | ||
Generated values: | ||
----- | ||
----- | ||
(20 ** MkFinInc 16 prf) | ||
----- | ||
(27 ** MkFinInc 17 prf) | ||
----- | ||
(27 ** MkFinInc 10 prf) | ||
----- | ||
(9 ** MkFinInc 5 prf) | ||
----- | ||
(23 ** MkFinInc 12 prf) | ||
----- | ||
(23 ** MkFinInc 8 prf) | ||
----- | ||
(18 ** MkFinInc 4 prf) | ||
----- | ||
(11 ** MkFinInc 7 prf) | ||
----- | ||
(11 ** MkFinInc 10 prf) | ||
----- | ||
(35 ** MkFinInc 15 prf) |
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 @@ | ||
../_common/run |