Skip to content

Commit 38187b1

Browse files
committed
Do not override with old substitution when externalising
1 parent fdf62fc commit 38187b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

booster/library/Booster/Syntax/Json/Externalise.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ externalisePattern ::
3636
externalisePattern Internal.Pattern{term = term, constraints, ceilConditions, substitution = ensuredSubstitution} inputSubstitution =
3737
-- need a sort for the predicates in external format
3838
let sort = externaliseSort $ sortOfTerm term
39-
substitutions = inputSubstitution <> (ensuredSubstitution `Substitution.compose` inputSubstitution)
39+
-- inputSubstitution is probably not needed here at all
40+
substitutions = ensuredSubstitution `Substitution.compose` inputSubstitution
4041
externalisedSubstitution =
4142
if null substitutions
4243
then Nothing

0 commit comments

Comments
 (0)