Skip to content

Commit

Permalink
Fix global-non-global head depth comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
ollef committed Mar 25, 2024
1 parent 8eab346 commit f86c5da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Elaboration/Depth.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ compareHeadDepths head1 head2 =
(Just _, Nothing) -> GT
(Nothing, Just _) -> LT
_ -> EQ
(_, Domain.Global _) -> pure LT
(Domain.Global _, _) -> pure GT
(_, Domain.Global _) -> pure GT
(Domain.Global _, _) -> pure LT
(Domain.Var v1, Domain.Var v2) -> pure $ compare v1 v2
_ -> pure EQ

0 comments on commit f86c5da

Please sign in to comment.