Skip to content

Commit

Permalink
[ experim ] Preserve old right-to-left behaviour in case we don't know
Browse files Browse the repository at this point in the history
  • Loading branch information
buzden committed Aug 19, 2024
1 parent 10db9c7 commit e5675f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Deriving/DepTyCheck/Gen/Core/ConsDerive.idr
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ searchOrder left = do
let next = removeDeeply curr $ removeDeeply determined left

-- `next` is smaller than `left` because `curr` must be not empty
curr ++ searchOrder (assert_smaller left next)
reverse curr ++ searchOrder (assert_smaller left next)

[WithNames] {con : Con} -> Foldable f => Interpolation (f $ Fin con.args.length) where
interpolate xs = joinBy ", " $ toList xs <&> \i => case name $ index' con.args i of
Expand Down

0 comments on commit e5675f5

Please sign in to comment.