Skip to content

Commit

Permalink
fix list equality
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorTaelin committed Oct 21, 2024
1 parent 43512c5 commit 57fd51c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Kind/Equal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ identical a b dep = do
go (Txt aTxt) (Txt bTxt) dep =
return (aTxt == bTxt)
go (Lst aLst) (Lst bLst) dep =
and <$> zipWithM (\a b -> identical a b dep) aLst bLst
if length aLst == length bLst
then and <$> zipWithM (\a b -> identical a b dep) aLst bLst
else return False
go (Nat aVal) (Nat bVal) dep =
return (aVal == bVal)
go (Src aSrc aVal) b dep =
Expand Down

0 comments on commit 57fd51c

Please sign in to comment.