1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 01:42:43 +03:00

Combine lets.

This commit is contained in:
Patrick Thomson 2019-10-21 12:41:45 -04:00
parent cbda7cf344
commit ecaa5a1671

View File

@ -207,8 +207,8 @@ instance Compile Py.ClassDefinition where
body <- compile pybody buildTypeCall next body <- compile pybody buildTypeCall next
let coreName = Name.named' n let coreName = Name.named' n
let assignClass = coreName :<- (rec coreName body) assignClass = coreName :<- (rec coreName body)
let continuing = fmap (locate it . (assignClass >>>=)) continuing = fmap (locate it . (assignClass >>>=))
continuing (local (def n) (cc next)) continuing (local (def n) (cc next))
instance Compile Py.ComparisonOperator instance Compile Py.ComparisonOperator