Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
- Loading branch information
Showing
10 changed files
with
173 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
[1 of 3] Processing p | ||
unit p(hole:H) | ||
[1 of 1] Compiling H[sig] ( p/H.hsig, nothing ) | ||
unit p(hole:H, hole:Y) | ||
[1 of 3] Compiling H[sig] ( p/H.hsig, nothing ) | ||
[2 of 3] Compiling Y[sig] ( p/Y.hsig, nothing ) | ||
[3 of 3] Compiling M ( p/M.hs, nothing ) | ||
[2 of 3] Processing impl | ||
Instantiating impl | ||
unit impl | ||
[1 of 2] Compiling F ( impl/F.hs, bkp14-out/impl/F.o ) | ||
[2 of 2] Compiling H ( impl/H.hs, bkp14-out/impl/H.o ) | ||
[3 of 3] Processing q | ||
Instantiating q | ||
unit q | ||
unit q(hole:Y) | ||
- include impl [(H, impl:H), (F, impl:F)] | ||
- include p(impl:H) [] | ||
[1 of 2] Including impl | ||
[2 of 2] Including p | ||
Instantiating p(impl:H) | ||
unit p(impl:H) | ||
[1 of 1] Compiling H[sig] ( p/H.hsig, bkp14-out/p/p-GULbd8Xpcj4IpAVv37waMI/H.o ) | ||
- include p(impl:H, hole:Y) [(M, p(impl:H, hole:Y):M)] | ||
Checking impl | ||
[1 of 2] Compiling Y[sig] ( q/Y.hsig, nothing ) | ||
[2 of 2] Compiling X ( q/X.hs, nothing ) |
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 @@ | ||
{-# LANGUAGE NoSignatureMerging #-} | ||
|
||
unit p where | ||
signature A where | ||
data A | ||
neg :: A -> A | ||
module P where | ||
import A | ||
f :: A -> A | ||
f = neg . neg | ||
|
||
unit r where | ||
module A where | ||
type A = Bool | ||
neg :: A -> A | ||
neg = not | ||
|
||
unit q where | ||
include p | ||
include r | ||
module M where | ||
import P | ||
g :: Bool | ||
g = f True |
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,20 @@ | ||
[1 of 3] Processing p | ||
unit p(hole:A) | ||
[1 of 2] Compiling A[sig] ( p/A.hsig, nothing ) | ||
[2 of 2] Compiling P ( p/P.hs, nothing ) | ||
[2 of 3] Processing r | ||
Instantiating r | ||
unit r | ||
[1 of 1] Compiling A ( r/A.hs, bkp26-out/r/A.o ) | ||
[3 of 3] Processing q | ||
Instantiating q | ||
unit q | ||
- include r [(A, r:A)] | ||
- include p(r:A) [(P, p(r:A):P)] | ||
[1 of 2] Including r | ||
[2 of 2] Including p | ||
Instantiating p(r:A) | ||
unit p(r:A) | ||
[1 of 2] Compiling A[sig] ( p/A.hsig, bkp26-out/p/p-8YQRY0unRYZCev5HBjXieS/A.o ) | ||
[2 of 2] Compiling P ( p/P.hs, bkp26-out/p/p-8YQRY0unRYZCev5HBjXieS/P.o ) | ||
[1 of 1] Compiling M ( q/M.hs, bkp26-out/q/M.o ) |
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,27 @@ | ||
{-# LANGUAGE NoSignatureMerging #-} | ||
|
||
unit p where | ||
signature A where | ||
data A | ||
neg :: A -> A | ||
module P where | ||
import A | ||
f :: A -> A | ||
f = neg . neg | ||
|
||
unit r where | ||
module A where | ||
data B = X | Y | ||
type A = B | ||
neg :: B -> B | ||
neg X = Y | ||
neg Y = X | ||
|
||
unit q where | ||
include p | ||
include r | ||
module M where | ||
import P | ||
import A | ||
g :: B | ||
g = f 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,20 @@ | ||
[1 of 3] Processing p | ||
unit p(hole:A) | ||
[1 of 2] Compiling A[sig] ( p/A.hsig, nothing ) | ||
[2 of 2] Compiling P ( p/P.hs, nothing ) | ||
[2 of 3] Processing r | ||
Instantiating r | ||
unit r | ||
[1 of 1] Compiling A ( r/A.hs, bkp27-out/r/A.o ) | ||
[3 of 3] Processing q | ||
Instantiating q | ||
unit q | ||
- include r [(A, r:A)] | ||
- include p(r:A) [(P, p(r:A):P)] | ||
[1 of 2] Including r | ||
[2 of 2] Including p | ||
Instantiating p(r:A) | ||
unit p(r:A) | ||
[1 of 2] Compiling A[sig] ( p/A.hsig, bkp27-out/p/p-8YQRY0unRYZCev5HBjXieS/A.o ) | ||
[2 of 2] Compiling P ( p/P.hs, bkp27-out/p/p-8YQRY0unRYZCev5HBjXieS/P.o ) | ||
[1 of 1] Compiling M ( q/M.hs, bkp27-out/q/M.o ) |