Skip to content

Commit

Permalink
Inline stmts'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Zalewski committed May 14, 2020
1 parent beaba30 commit 1895d10
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/Field/Textual.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ forgetStatementIDs :: Statement f -> Statement f
forgetStatementIDs (ELet uvar d) = ELet (forgetID uvar) (forgetIDs d)
forgetStatementIDs (EAssert expr) = EAssert $ forgetIDs expr
forgetStatementIDs (EFor uvar start end stmts) =
EFor (forgetID uvar) start end stmts' where
stmts' = forgetStatementIDs <$> stmts

EFor (forgetID uvar) start end (forgetStatementIDs <$> stmts)
forgetIDs :: Expr f a -> Expr f a
forgetIDs (EConst uval) = EConst uval
forgetIDs (EVar uvar) = EVar $ forgetID uvar
Expand Down

0 comments on commit 1895d10

Please sign in to comment.