Skip to content

Commit

Permalink
[ derive ] Clean up repeating orders and log finally used ones
Browse files Browse the repository at this point in the history
  • Loading branch information
buzden committed Aug 14, 2024
1 parent 623b5b2 commit 13f0694
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Deriving/DepTyCheck/Gen/Core/ConsDerive.idr
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ namespace NonObligatoryExts
pure $ leftmost ++ leftToRightArgs ++ rightmost

let allOrders = if simplificationHack then take 1 allOrders else allOrders
let allOrders = List.nub $ nub <$> allOrders

for_ allOrders $ \order =>
logPoint {level=10} "least-effort.order" [sig, con] "- one of used final orders: \{show order}"

--------------------------
-- Producing the result --
Expand Down

0 comments on commit 13f0694

Please sign in to comment.