-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug with eta reduction rewrite rule
- Loading branch information
Showing
10 changed files
with
77 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"builtWith":"0.15.15","comments":[],"decls":[{"annotation":{"meta":null,"sourceSpan":{"end":[3,19],"start":[3,1]}},"bindType":"NonRec","expression":{"annotation":{"meta":null,"sourceSpan":{"end":[3,19],"start":[3,1]}},"argument":"f","body":{"annotation":{"meta":null,"sourceSpan":{"end":[3,19],"start":[3,1]}},"argument":"a","body":{"annotation":{"meta":null,"sourceSpan":{"end":[3,19],"start":[3,1]}},"argument":"b","body":{"abstraction":{"abstraction":{"annotation":{"meta":null,"sourceSpan":{"end":[3,15],"start":[3,14]}},"type":"Var","value":{"identifier":"f","sourcePos":[3,1]}},"annotation":{"meta":null,"sourceSpan":{"end":[3,17],"start":[3,14]}},"argument":{"annotation":{"meta":null,"sourceSpan":{"end":[3,17],"start":[3,16]}},"type":"Var","value":{"identifier":"b","sourcePos":[3,1]}},"type":"App"},"annotation":{"meta":null,"sourceSpan":{"end":[3,19],"start":[3,14]}},"argument":{"annotation":{"meta":null,"sourceSpan":{"end":[3,19],"start":[3,18]}},"type":"Var","value":{"identifier":"a","sourcePos":[3,1]}},"type":"App"},"type":"Abs"},"type":"Abs"},"type":"Abs"},"identifier":"flip"}],"exports":["flip"],"foreign":[],"imports":[{"annotation":{"meta":null,"sourceSpan":{"end":[3,19],"start":[1,1]}},"moduleName":["Prim"]}],"moduleName":["Golden","Bug2","Test"],"modulePath":"golden/Golden/Bug2/Test.purs","reExports":{},"sourceSpan":{"end":[3,19],"start":[1,1]}} |
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 @@ | ||
UberModule | ||
{ uberModuleBindings = [], uberModuleForeigns = [], uberModuleExports = | ||
[ | ||
( Name "flip", Abs Nothing | ||
( ParamNamed Nothing ( Name "f" ) ) | ||
( Abs Nothing | ||
( ParamNamed Nothing ( Name "a" ) ) | ||
( Abs Nothing | ||
( ParamNamed Nothing ( Name "b" ) ) | ||
( App Nothing | ||
( App Nothing | ||
( Ref Nothing ( Local ( Name "f" ) ) 0 ) | ||
( Ref Nothing ( Local ( Name "b" ) ) 0 ) | ||
) | ||
( Ref Nothing ( Local ( Name "a" ) ) 0 ) | ||
) | ||
) | ||
) | ||
) | ||
] | ||
} |
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 @@ | ||
return { | ||
flip = function(f) | ||
return function(a) return function(b) return f(b)(a) end end | ||
end | ||
} |
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,5 +1,5 @@ | ||
{ name = "test-project" | ||
, dependencies = [ "effect", "prelude" ] | ||
, dependencies = [ "console", "effect", "prelude" ] | ||
, packages = ./packages.dhall | ||
, sources = [ "golden/**/*.purs" ] | ||
} |