Reference interpreter: fix bug in tuple comparisons

This commit is contained in:
Brian Huffman 2017-05-05 10:28:46 -07:00
parent 0d2e36a18a
commit 617dfb0c93

View File

@ -864,7 +864,7 @@ bits to the *left* of that position are equal.
> TVFun _ _ ->
> evalPanic "lexCompare" ["invalid type"]
> TVTuple etys ->
> lexList (zipWith3 lexCompare etys (fromVList l) (fromVList r))
> lexList (zipWith3 lexCompare etys (fromVTuple l) (fromVTuple r))
> TVRec fields ->
> let tys = map snd (sortBy (comparing fst) fields)
> ls = map snd (sortBy (comparing fst) (fromVRecord l))