Skip to content

Commit

Permalink
Fix lockfile key ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcadman committed Oct 2, 2023
1 parent ca408e5 commit 2741dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Juvix/Compiler/Pipeline/Lockfile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ lockfileEncodeConfig = setConfCompare keyCompare defConfig
keyCompare :: Text -> Text -> Ordering
keyCompare x y =
if
| y == Str.dependencies, x == Str.dependencies -> GT
| y == Str.dependencies || x == Str.dependencies -> GT
| otherwise -> compare x y

writeLockfile :: (Members '[Files] r) => Path Abs Dir -> Lockfile -> Sem r ()
Expand Down

0 comments on commit 2741dfb

Please sign in to comment.