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

Commit c8d1de4

Browse files
committed
Alphabetize.
1 parent 5b539e8 commit c8d1de4

File tree

1 file changed

+5
-4
lines changed
  • semantic-python/src/Language/Python

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,18 @@ instance Compile Py.Module where
2727

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

30+
instance Compile Py.Block
31+
instance Compile Py.ClassDefinition
32+
instance Compile Py.DecoratedDefinition
33+
instance Compile Py.Expression
34+
3035
instance Compile Py.IfStatement where
3136
compile IfStatement{..} = If <$> compile condition <*> compile consequence <*> case alternative of
3237
Nothing -> pure Unit
3338
Just clauses -> foldr clause (pure Unit) clauses
3439
where clause (Left (ElifClause{..})) rest = If <$> compile condition <*> compile consequence <*> rest
3540
clause (Right (ElseClause body)) _ = compile body
3641

37-
instance Compile Py.Expression
38-
instance Compile Py.Block
39-
instance Compile Py.ClassDefinition
40-
instance Compile Py.DecoratedDefinition
4142
instance Compile Py.ForStatement
4243
instance Compile Py.FunctionDefinition
4344
instance Compile Py.TryStatement

0 commit comments

Comments
 (0)