@@ -21,17 +21,23 @@ defaultCompile t = fail $ "compilation unimplemented for " <> show t
2121deriving via CompileSum (Either l r ) instance (Compile l , Compile r ) => Compile (Either l r )
2222
2323instance Compile Py. AssertStatement
24+ instance Compile Py. Await
2425instance Compile Py. Block
26+ instance Compile Py. BooleanOperator
2527instance Compile Py. BreakStatement
2628instance Compile Py. ClassDefinition
29+ instance Compile Py. ComparisonOperator
2730
2831deriving via CompileSum Py. CompoundStatement instance Compile Py. CompoundStatement
2932
33+ instance Compile Py. ConditionalExpression
3034instance Compile Py. ContinueStatement
3135instance Compile Py. DecoratedDefinition
3236instance Compile Py. DeleteStatement
3337instance Compile Py. ExecStatement
34- instance Compile Py. Expression
38+
39+ deriving via CompileSum Py. Expression instance Compile Py. Expression
40+
3541instance Compile Py. ExpressionStatement
3642instance Compile Py. ForStatement
3743instance Compile Py. FunctionDefinition
@@ -47,13 +53,17 @@ instance Compile Py.IfStatement where
4753
4854instance Compile Py. ImportFromStatement
4955instance Compile Py. ImportStatement
56+ instance Compile Py. Lambda
5057
5158instance Compile Py. Module where
5259 compile (Module Nothing ) = pure Unit
5360 compile (Module (Just statements)) = block <$> traverse compile statements
5461
62+ instance Compile Py. NamedExpression
5563instance Compile Py. NonlocalStatement
64+ instance Compile Py. NotOperator
5665instance Compile Py. PassStatement
66+ instance Compile Py. PrimaryExpression
5767instance Compile Py. PrintStatement
5868instance Compile Py. ReturnStatement
5969instance Compile Py. RaiseStatement
@@ -81,6 +91,7 @@ instance Compile t => GCompileSum (M1 C c (M1 S s (K1 R t))) where
8191
8292-- FIXME: depend on https://github.com/tree-sitter/haskell-tree-sitter/pull/90 so we can get rid of these orphan instances
8393deriving instance Generic Py. CompoundStatement
94+ deriving instance Generic Py. Expression
8495deriving instance Generic Py. SimpleStatement
8596
8697
0 commit comments