Skip to content

Commit

Permalink
add type sig
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed Aug 29, 2023
1 parent 5e0f7ed commit 4be2e2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templatespiler-converter/src/Templatespiler/Emit/Python.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Templatespiler.ToLang.Python
emitPy :: Program -> Doc ()
emitPy = vsep . fmap emitStmt

emitFor :: (Pretty a) => a -> Doc () -> [Stmt] -> Doc ()
emitFor i rangeParams body =
vsep
[ "for" <+> pretty i <+> "in range(" <> rangeParams <> "):"
Expand Down

0 comments on commit 4be2e2d

Please sign in to comment.