Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.d/internal_fix-typo-in-traversal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Fix typo in CoreFn.Traversals.traverseCoreFn which caused it to not recurse into Let bodies
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ If you would prefer to use different terms, please use the section below instead
| [@xgrommx](https://github.com/xgrommx) | Denis Stoyanov | [MIT license] |
| [@zudov](https://github.com/zudov) | Konstantin Zudov | [MIT license] |
| [@roryc89](https://github.com/roryc89) | Rory Campbell | [MIT license] |
| [@drathier](https://github.com/drathier) | Drathier | [MIT license] |


### Contributors using Modified Terms
Expand Down
2 changes: 1 addition & 1 deletion src/Language/PureScript/CoreFn/Traversals.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ traverseCoreFn f g h i = (f', g', h', i')
g' (Abs ann name e) = Abs ann name <$> g e
g' (App ann v1 v2) = App ann <$> g v1 <*> g v2
g' (Case ann vs alts) = Case ann <$> traverse g vs <*> traverse i alts
g' (Let ann ds e) = Let ann <$> traverse f ds <*> g' e
g' (Let ann ds e) = Let ann <$> traverse f ds <*> g e
g' e = pure e

h' (LiteralBinder a b) = LiteralBinder a <$> handleLiteral h b
Expand Down
Loading