Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit ead494a

Browse files
committed
These are incurred by IfStatement.
1 parent c8d1de4 commit ead494a

File tree

1 file changed

+3
-2
lines changed
  • semantic-python/src/Language/Python

1 file changed

+3
-2
lines changed

semantic-python/src/Language/Python/Core.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ instance Compile Py.Module where
2727

2828
deriving via CompileSum Py.CompoundStatement instance Compile Py.CompoundStatement
2929

30-
instance Compile Py.Block
3130
instance Compile Py.ClassDefinition
3231
instance Compile Py.DecoratedDefinition
33-
instance Compile Py.Expression
3432

3533
instance Compile Py.IfStatement where
3634
compile IfStatement{..} = If <$> compile condition <*> compile consequence <*> case alternative of
@@ -39,6 +37,9 @@ instance Compile Py.IfStatement where
3937
where clause (Left (ElifClause{..})) rest = If <$> compile condition <*> compile consequence <*> rest
4038
clause (Right (ElseClause body)) _ = compile body
4139

40+
instance Compile Py.Block
41+
instance Compile Py.Expression
42+
4243
instance Compile Py.ForStatement
4344
instance Compile Py.FunctionDefinition
4445
instance Compile Py.TryStatement

0 commit comments

Comments
 (0)