-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ fix ] Forward data declarations are linear
- Loading branch information
1 parent
69f198d
commit 8f1d8b7
Showing
6 changed files
with
31 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
data Tm = Foo Nat | ||
|
||
mutual | ||
Env : Type | ||
Env = List Clos | ||
|
||
data Clos : Type where | ||
Cl : Tm -> Env -> Clos |
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,9 @@ | ||
mutual | ||
public export | ||
ListT : (m : Type -> Type) -> (a : Type) -> Type | ||
ListT m a = m (ListStruct m a) | ||
|
||
public export | ||
data ListStruct : (m : Type -> Type) -> (a : Type) -> Type where | ||
Nil : ListStruct m a | ||
(::) : a -> ListT m a -> ListStruct m a |
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 @@ | ||
data X : Type | ||
data Y : Type -> Type | ||
|
||
f : Type | ||
f = 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,3 @@ | ||
1/1: Building Issue586 (Issue586.idr) | ||
1/1: Building Issue586b (Issue586b.idr) | ||
1/1: Building Issue1204 (Issue1204.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 @@ | ||
. ../../../testutils.sh | ||
|
||
check Issue586.idr | ||
check Issue586b.idr | ||
check Issue1204.idr |