Tracking entry (detail in package repo).
prelude Data.Ord.ordBooleanImpl aliases the shared unsafeCoerceImpl, which compares with x < y. Lua 5.1 errors on relational operators between booleans (attempt to compare two boolean values), so every Ord Boolean operation (compare, <, min, max, clamp) crashes at runtime. Same class as the other prelude FFI divergences; fix carries over @UnrelatedString's #3 implementation with a regression test.
Tracking entry (detail in package repo).
prelude
Data.Ord.ordBooleanImplaliases the sharedunsafeCoerceImpl, which compares withx < y. Lua 5.1 errors on relational operators between booleans (attempt to compare two boolean values), so everyOrd Booleanoperation (compare,<,min,max,clamp) crashes at runtime. Same class as the other prelude FFI divergences; fix carries over @UnrelatedString's #3 implementation with a regression test.